19 printf(
"In myTrdK::myTrdK\n");
28 printf(
"In myTrdK::~myTrdK\n");
36 printf(
"In myTrdK::Clear\n");
39 IsReadAlignmentOK = -10;
43 fill_n(LHR, 3, (
int)(-10));
44 fill_n(LHRCorr, 3, (
int)(-10));
45 fill_n(LH, 3, (
int)(-10));
46 fill_n(LHCorr, 3, (
int)(-10));
48 NHitsUsedInLHCorr = -10;
51 LHRrefitValid = LHRrefitCorrValid =
false;
52 NHitsUsedInLHrefit = NHitsUsedInLHrefitCorr = -1;
53 fill_n(LHRrefit, 3, -2);
54 fill_n(LHrefit, 3, -2);
55 fill_n(LHRrefitCorr, 3, -2);
56 fill_n(LHrefitCorr, 3, -2);
60 QTRDHitCollectionNucleiSize = -10;
67 printf(
"In myTrdK::init\n");
79 template<
class SeedType>
80 myTrdKFiller<SeedType>::myTrdKFiller(){
82 printf(
"In template<class SeedType> myTrdKFiller::myTrdKFromTrTrackFiller\n");
89 template<
class SeedType>
90 myTrdKFiller<SeedType>::~myTrdKFiller(){
92 printf(
"In template<class SeedType> myTrdKFiller::~myTrdKFromTrTrackFiller\n");
98 template<
class SeedType>
99 void myTrdKFiller<SeedType>::Clear(Option_t* option){
101 printf(
"In template<class SeedType> myTrdKFiller::Clear\n");
107 template<
class SeedType>
108 void myTrdKFiller<SeedType>::init(){
110 printf(
"In template<class SeedType> myTrdKFiller::init\n");
118 template<
class SeedType>
119 void myTrdKFiller<SeedType>::Fill(
short int i_track, SeedType* track,
float Energy,
float kDef){
121 printf(
"In template<class SeedType> myTrdKFiller::Fill\n");
125 AMSEventR* pev = AMSEventR::Head();
127 int NTrdRawHits = pev->nTrdRawHit();
129 #if !defined _B524_ && !defined _B550_ && !defined _B572_
131 if (kDef>=0 && track && NTrdRawHits>0) {
133 TrdKCluster trdkclu(pev, track, kDef);
135 IsReadAlignmentOK= trdkclu.IsReadAlignmentOK;
136 IsReadCalibOK= trdkclu.IsReadCalibOK;
138 if (IsReadAlignmentOK && IsReadCalibOK) {
139 LHRValid = trdkclu.GetLikelihoodRatio_TrTrack(trdkADCth, LHR, NHitsUsedInLH, 0, LH);
140 LHRValidCorr = trdkclu.GetLikelihoodRatio_TrTrack(trdkADCth, LHRCorr, NHitsUsedInLHCorr, Energy, LHCorr);
142 trdkclu.GetOffTrackHit_TrTrack(OffTrackNHits, OffTrackAmps);
144 LHRrefitValid = trdkclu.GetLikelihoodRatio_TRDRefit(trdkADCth, LHRrefit, NHitsUsedInLHrefit, 0, LHrefit);
145 LHRrefitCorrValid = trdkclu.GetLikelihoodRatio_TRDRefit(trdkADCth, LHRrefitCorr, NHitsUsedInLHrefitCorr, Energy, LHrefitCorr);
147 #if !defined _B524_ && !defined _B530_ && !defined _B538_ && !defined _B550_ && !defined _B572_ && !defined _B580_ && !defined _B584_ && !defined _B594_ && !defined _B598_ && !defined _B610_ && !defined _B620_
149 trdkclu.CalculateTRDCharge();
151 TRDCharge = trdkclu.GetTRDCharge();
153 TRDChargeError = trdkclu.GetTRDChargeError();
155 QTRDHitCollectionNucleiSize = trdkclu.GetQTRDHitCollectionNuclei().size();
163 #endif //#if !defined _B524_ && !defined _B550_ && !defined _B572_ //both for TRDK and TRDQT
171 template class myTrdKFiller<TrTrackR>;
172 template class myTrdKFiller<TrdTrackR>;