8 #define NEP 2.71828182845904
21 printf(
"In myTrdQtFromTrTrack::myTrdQtFromTrTrack\n");
30 printf(
"In myTrdQtFromTrTrack::~myTrdQtFromTrTrack\n");
38 printf(
"In myTrdQtFromTrTrack::Clear\n");
42 NumberOfActiveLayers = -999999;
43 NHitsUsedInLH = -999999;
44 fill_n(LHR, 3, (
int)(-999999));
45 IsInsideTrdGeometricalAcceptance =
false;
46 PassesTrdPreselectionCuts =
false;
47 UsefulForTrdParticleId =
false;
54 printf(
"In myTrdQtFromTrTrack::init\n");
66 myTrdQtFromTrTrackFiller::myTrdQtFromTrTrackFiller(){
68 printf(
"In myTrdQtFromTrTrackFiller::myTrdQtFromTrTrackFiller\n");
75 myTrdQtFromTrTrackFiller::~myTrdQtFromTrTrackFiller(){
77 printf(
"In myTrdQtFromTrTrackFiller::~myTrdQtFromTrTrackFiller\n");
83 void myTrdQtFromTrTrackFiller::Clear(Option_t* option){
85 printf(
"In myTrdQtFromTrTrackFiller::Clear\n");
91 void myTrdQtFromTrTrackFiller::init(){
93 printf(
"In myTrdQtFromTrTrackFiller::init\n");
101 void myTrdQtFromTrTrackFiller::Fill(
short int i_track, TrTrackR* track,
int kDef,
float Energy){
103 printf(
"In myTrdQtFromTrTrackFiller::Fill\n");
107 AMSEventR* pev = AMSEventR::Head();
109 int NTrdRawHits = pev->nTrdRawHit();
111 #ifdef AMS_ACQT_INTERFACE
113 #if !defined _B524_ && !defined _B550_ && !defined _B572_
115 if (kDef>0 && track && NTrdRawHits>0) {
117 #if !defined _B584_ && !defined _B610_ && !defined _B620_
119 static TrdQt* trdQt =
new TrdQt(0);
122 IfProcessed = trdQt->ProcessEvent(pev, i_track, 1, 0, 1);
123 NumberOfActiveLayers = trdQt->GetNumberOfActiveLayers();
124 NHitsUsedInLH = trdQt->GetNumberOfActiveStraws();
126 IsInsideTrdGeometricalAcceptance = trdQt->IsInsideTrdGeometricalAcceptance();
128 PassesTrdPreselectionCuts = trdQt->PassesTrdPreselectionCuts();
130 UsefulForTrdParticleId = trdQt->UsefulForTrdParticleId();
133 LHR[0]=trdQt->LogLikelihoodRatioElectronProton();
134 LHR[1]=-log(1.0-pow(
NEP,-trdQt->LogLikelihoodRatioHeliumElectron()));
135 LHR[2]=-log(1.0-pow(
NEP,-trdQt->LogLikelihoodRatioHeliumProton()));
138 #endif //#if !defined _B584_ && !defined _B610_ && !defined _B620_
142 #endif //#if !defined _B524_ && !defined _B550_ && !defined _B572_
144 #endif //#ifdef AMS_ACQT_INTERFACE