Main Page | Modules | Namespace List | Class Hierarchy | Alphabetical List | Class List | Directories | File List | Namespace Members | Class Members | File Members | Related Pages

MeuCounter Class Reference

#include <MeuCounter.h>

List of all members.

Public Member Functions

 MeuCounter ()
 ~MeuCounter ()
void PrintAtNu () const
void PrintNtpSt () const

Public Attributes

Int_t entry
Int_t entriesAll
Int_t goodSpillCounter
Int_t zeroEvtsCounter
Int_t evtCounter
Int_t oneTrackCounter
Int_t oneEvtPerSlcCounter
Int_t longTrackCounter
Int_t correctTrigSrcCounter
Int_t notLICounter
Int_t closeTimesCounter
Int_t notEmptyEventCounter
Int_t endPlaneSpectCounter
Int_t longTrack2Counter
Int_t FCCounter
Int_t PCCounter
Int_t TGCounter
Int_t coilHitCounter
Int_t bothSMHitCounter
Int_t goodContainmentCounter
Int_t badViewsCounter
Int_t badTrackEndCounter
Int_t badRecoCounter
Int_t badEndGapsCounter
Int_t bad2ndContCounter
Int_t badWindowCounter
Int_t badFidCounter
Int_t badTraceZCounter
Int_t badDistEndCounter
Int_t badShwDistCounter
Int_t goodWindowCounter
Int_t goodXYCounter


Constructor & Destructor Documentation

MeuCounter::MeuCounter  ) 
 

Definition at line 21 of file MeuCounter.cxx.

References bad2ndContCounter, badDistEndCounter, badEndGapsCounter, badFidCounter, badRecoCounter, badShwDistCounter, badTraceZCounter, badTrackEndCounter, badViewsCounter, badWindowCounter, bothSMHitCounter, closeTimesCounter, coilHitCounter, correctTrigSrcCounter, endPlaneSpectCounter, entriesAll, entry, evtCounter, FCCounter, goodContainmentCounter, goodSpillCounter, goodWindowCounter, goodXYCounter, longTrack2Counter, longTrackCounter, MSG, notEmptyEventCounter, notLICounter, oneEvtPerSlcCounter, oneTrackCounter, PCCounter, TGCounter, and zeroEvtsCounter.

00022 {
00023   MSG("MeuCounter",Msg::kDebug)
00024     <<"Running MeuCounter Constructor..."<<endl;
00025 
00026   entry=0;
00027   entriesAll=0;
00028 
00029   //counters
00030   //not used to cut on
00031   goodSpillCounter=0;
00032   zeroEvtsCounter=0;
00033   evtCounter=0;
00034   
00035   //counters for the cuts
00036   oneTrackCounter=0;
00037   oneEvtPerSlcCounter=0;
00038   longTrackCounter=0;
00039   correctTrigSrcCounter=0;
00040   notLICounter=0;
00041   closeTimesCounter=0;
00042   notEmptyEventCounter=0;
00043   endPlaneSpectCounter=0;
00044   longTrack2Counter=0;
00045 
00046   //not used to cut on
00047   FCCounter=0;
00048   PCCounter=0;
00049   TGCounter=0;
00050   coilHitCounter=0;
00051   bothSMHitCounter=0;
00052  
00053   //cut on these
00054   goodContainmentCounter=0;
00055   badViewsCounter=0;
00056   badTrackEndCounter=0;
00057   badRecoCounter=0;
00058   badEndGapsCounter=0;
00059   bad2ndContCounter=0;
00060   badWindowCounter=0;
00061   badFidCounter=0;
00062   badTraceZCounter=0;
00063   badDistEndCounter=0;
00064   badShwDistCounter=0;
00065   goodWindowCounter=0;
00066   goodXYCounter=0;//atnu only
00067 
00068   MSG("MeuCounter",Msg::kDebug)
00069     <<"Finished MeuCounter Constructor"<<endl;
00070 }

MeuCounter::~MeuCounter  ) 
 

Definition at line 74 of file MeuCounter.cxx.

References MSG.

00075 {
00076   MSG("MeuCounter",Msg::kDebug)
00077     <<"Running MeuCounter Destructor..."<<endl;
00078   
00079 
00080   MSG("MeuCounter",Msg::kDebug)
00081     <<"Finished MeuCounter Destructor"<<endl;
00082 }


Member Function Documentation

void MeuCounter::PrintAtNu  )  const
 

Definition at line 149 of file MeuCounter.cxx.

References bad2ndContCounter, badEndGapsCounter, badFidCounter, badRecoCounter, badTraceZCounter, badTrackEndCounter, badViewsCounter, badWindowCounter, bothSMHitCounter, coilHitCounter, FCCounter, goodContainmentCounter, goodWindowCounter, goodXYCounter, longTrackCounter, MSG, notLICounter, oneTrackCounter, PCCounter, and TGCounter.

00150 {
00151   MSG("MeuCounter",Msg::kInfo)
00152     <<endl
00153     <<"  Not LI         ="<<notLICounter<<endl
00154     <<"  One track      ="<<oneTrackCounter<<endl
00155     <<"  Long track     ="<<longTrackCounter<<endl
00156     <<"  Good XY        ="<<goodXYCounter<<endl
00157     <<"  Good contain.  ="<<goodContainmentCounter<<endl
00158     <<"    Coil hit   ="<<coilHitCounter<<endl
00159     <<"    Both SM hit="<<bothSMHitCounter<<" (&& awayFromCoil)"
00160     <<endl;
00161   
00162   MSG("MeuCounter",Msg::kInfo)
00163     <<"Containment summary:"<<endl
00164     <<"  PC="<<PCCounter<<endl
00165     <<"  FC="<<FCCounter<<endl
00166     <<"  TG="<<TGCounter<<endl
00167     <<"  FC+PC+TG="<<FCCounter+PCCounter+TGCounter<<endl
00168     <<endl;
00169   
00170   Int_t totalBadPCEvents=
00171     badViewsCounter+
00172     badTrackEndCounter+
00173     badRecoCounter+
00174     badEndGapsCounter+
00175     badWindowCounter+
00176     badFidCounter+
00177     bad2ndContCounter+
00178     badTraceZCounter+  
00179     badDistEndCounter;
00180 
00181   MSG("MeuCounter",Msg::kInfo)
00182     <<"Total PC with good track window = "<<goodWindowCounter<<endl
00183     <<"              bad views         = "<<badViewsCounter<<endl
00184     <<"              bad track end     = "<<badTrackEndCounter<<endl
00185     <<"              bad reco          = "<<badRecoCounter<<endl
00186     <<"              bad track end gaps= "<<badEndGapsCounter<<endl
00187     <<"              bad track window  = "<<badWindowCounter<<endl
00188     <<"              bad fiducial vol  = "<<badFidCounter<<endl
00189     <<"              bad 2nd contain.  = "<<bad2ndContCounter<<endl
00190     <<"              bad trace Z       = "<<badTraceZCounter<<endl
00191     <<"              bad dist strip end= "<<badDistEndCounter<<endl
00192     <<" Total bad                      = "<<totalBadPCEvents<<endl
00193     <<" Total bad + good               = "
00194     <<totalBadPCEvents+goodWindowCounter<<endl
00195     <<endl;
00196 }

void MeuCounter::PrintNtpSt  )  const
 

Definition at line 86 of file MeuCounter.cxx.

References bad2ndContCounter, badDistEndCounter, badEndGapsCounter, badFidCounter, badRecoCounter, badTraceZCounter, badTrackEndCounter, badViewsCounter, badWindowCounter, bothSMHitCounter, closeTimesCounter, coilHitCounter, correctTrigSrcCounter, endPlaneSpectCounter, entriesAll, entry, evtCounter, FCCounter, goodContainmentCounter, goodSpillCounter, goodWindowCounter, longTrack2Counter, longTrackCounter, MSG, notEmptyEventCounter, notLICounter, oneEvtPerSlcCounter, oneTrackCounter, PCCounter, TGCounter, and zeroEvtsCounter.

Referenced by MeuAnalysis::MakeSummaryTreeWithAtNu(), and MeuAnalysis::StoreOrFinishSummaryTree().

00087 {
00088   MSG("MeuCounter",Msg::kInfo)
00089     <<endl
00090     <<"Entries looped over="<<entriesAll<<" (last entry="<<entry<<")"
00091     <<endl
00092     <<"Good BD spills (snarls) = "<<goodSpillCounter<<endl
00093     <<"Snarls with zero events = "<<zeroEvtsCounter<<endl
00094     <<"Total Events = "<<evtCounter<<endl
00095     <<"  One track           = "<<oneTrackCounter<<endl
00096     <<"  One evt in slc      = "<<oneEvtPerSlcCounter<<endl
00097     <<"  Long track          = "<<longTrackCounter<<endl
00098     <<"  CorrectTrigSrc      = "<<correctTrigSrcCounter<<endl
00099     <<"  Not LI (FD)         = "<<notLICounter<<endl
00100     <<"  Close trk times     = "<<closeTimesCounter<<endl
00101     <<"  Not empty event     = "<<notEmptyEventCounter<<endl
00102     <<"  End plane spect (ND)= "<<endPlaneSpectCounter<<endl
00103     <<"  Long track 2        = "<<longTrack2Counter<<endl
00104     <<"Containment summary:"<<endl
00105     <<"  PC = "<<PCCounter<<endl
00106     <<"  FC = "<<FCCounter<<endl
00107     <<"  TG = "<<TGCounter<<endl
00108     <<"  FC+PC+TG = "<<FCCounter+PCCounter+TGCounter<<endl
00109     <<endl
00110     <<"Of PC events:"<<endl
00111     <<"  Coil hit   = "<<coilHitCounter<<endl
00112     <<"  Both SM hit= "<<bothSMHitCounter<<endl
00113     <<endl
00114     <<"Total PC events with good containment = "<<goodContainmentCounter
00115     <<endl;
00116 
00117   Int_t totalBadPCEvents=badViewsCounter+
00118     badTrackEndCounter+
00119     badRecoCounter+
00120     badEndGapsCounter+
00121     bad2ndContCounter+
00122     badWindowCounter+
00123     badFidCounter+
00124     badTraceZCounter+
00125     badDistEndCounter+
00126     badShwDistCounter;
00127     
00128   MSG("MeuCounter",Msg::kInfo)
00129     <<endl
00130     <<"Total PC with good track window  = "<<goodWindowCounter<<endl
00131     <<"              bad views          = "<<badViewsCounter<<endl
00132     <<"              bad track end      = "<<badTrackEndCounter<<endl
00133     <<"              bad reco           = "<<badRecoCounter<<endl
00134     <<"              bad track end gaps = "<<badEndGapsCounter<<endl
00135     <<"              bad 2nd contain.   = "<<bad2ndContCounter<<endl
00136     <<"              bad track window   = "<<badWindowCounter<<endl
00137     <<"              bad fiducial vol   = "<<badFidCounter<<endl
00138     <<"              bad trace Z        = "<<badTraceZCounter<<endl
00139     <<"              bad dist strip end = "<<badDistEndCounter<<endl
00140     <<"              bad dist to shw    = "<<badShwDistCounter<<endl
00141     <<" Total bad                       = "<<totalBadPCEvents<<endl
00142     <<" Total bad + good                = "
00143     <<totalBadPCEvents+goodWindowCounter<<endl
00144     <<endl;
00145 }


Member Data Documentation

Int_t MeuCounter::bad2ndContCounter
 

Definition at line 53 of file MeuCounter.h.

Referenced by MeuAnalysis::MakeSummaryTreeWithAtNu(), MeuAnalysis::MakeSummaryTreeWithNtpStOneSnarl(), MeuCounter(), PrintAtNu(), and PrintNtpSt().

Int_t MeuCounter::badDistEndCounter
 

Definition at line 57 of file MeuCounter.h.

Referenced by MeuAnalysis::MakeSummaryTreeWithAtNu(), MeuAnalysis::MakeSummaryTreeWithNtpStOneSnarl(), MeuCounter(), and PrintNtpSt().

Int_t MeuCounter::badEndGapsCounter
 

Definition at line 52 of file MeuCounter.h.

Referenced by MeuAnalysis::MakeSummaryTreeWithAtNu(), MeuAnalysis::MakeSummaryTreeWithNtpStOneSnarl(), MeuCounter(), PrintAtNu(), and PrintNtpSt().

Int_t MeuCounter::badFidCounter
 

Definition at line 55 of file MeuCounter.h.

Referenced by MeuAnalysis::MakeSummaryTreeWithAtNu(), MeuAnalysis::MakeSummaryTreeWithNtpStOneSnarl(), MeuCounter(), PrintAtNu(), and PrintNtpSt().

Int_t MeuCounter::badRecoCounter
 

Definition at line 51 of file MeuCounter.h.

Referenced by MeuAnalysis::MakeSummaryTreeWithAtNu(), MeuAnalysis::MakeSummaryTreeWithNtpStOneSnarl(), MeuCounter(), PrintAtNu(), and PrintNtpSt().

Int_t MeuCounter::badShwDistCounter
 

Definition at line 58 of file MeuCounter.h.

Referenced by MeuAnalysis::MakeSummaryTreeWithNtpStOneSnarl(), and MeuCounter().

Int_t MeuCounter::badTraceZCounter
 

Definition at line 56 of file MeuCounter.h.

Referenced by MeuAnalysis::MakeSummaryTreeWithAtNu(), MeuAnalysis::MakeSummaryTreeWithNtpStOneSnarl(), MeuCounter(), PrintAtNu(), and PrintNtpSt().

Int_t MeuCounter::badTrackEndCounter
 

Definition at line 50 of file MeuCounter.h.

Referenced by MeuAnalysis::MakeSummaryTreeWithAtNu(), MeuAnalysis::MakeSummaryTreeWithNtpStOneSnarl(), MeuCounter(), PrintAtNu(), and PrintNtpSt().

Int_t MeuCounter::badViewsCounter
 

Definition at line 49 of file MeuCounter.h.

Referenced by MeuAnalysis::MakeSummaryTreeWithAtNu(), MeuAnalysis::MakeSummaryTreeWithNtpStOneSnarl(), MeuCounter(), PrintAtNu(), and PrintNtpSt().

Int_t MeuCounter::badWindowCounter
 

Definition at line 54 of file MeuCounter.h.

Referenced by MeuAnalysis::MakeSummaryTreeWithAtNu(), MeuAnalysis::MakeSummaryTreeWithNtpStOneSnarl(), MeuCounter(), PrintAtNu(), and PrintNtpSt().

Int_t MeuCounter::bothSMHitCounter
 

Definition at line 45 of file MeuCounter.h.

Referenced by MeuAnalysis::MakeSummaryTreeWithAtNu(), MeuAnalysis::MakeSummaryTreeWithNtpStOneSnarl(), MeuCounter(), PrintAtNu(), and PrintNtpSt().

Int_t MeuCounter::closeTimesCounter
 

Definition at line 35 of file MeuCounter.h.

Referenced by MeuAnalysis::MakeSummaryTreeWithNtpStOneSnarl(), MeuCounter(), and PrintNtpSt().

Int_t MeuCounter::coilHitCounter
 

Definition at line 44 of file MeuCounter.h.

Referenced by MeuAnalysis::MakeSummaryTreeWithAtNu(), MeuAnalysis::MakeSummaryTreeWithNtpStOneSnarl(), MeuCounter(), PrintAtNu(), and PrintNtpSt().

Int_t MeuCounter::correctTrigSrcCounter
 

Definition at line 33 of file MeuCounter.h.

Referenced by MeuAnalysis::MakeSummaryTreeWithNtpStOneSnarl(), MeuCounter(), and PrintNtpSt().

Int_t MeuCounter::endPlaneSpectCounter
 

Definition at line 37 of file MeuCounter.h.

Referenced by MeuAnalysis::MakeSummaryTreeWithNtpStOneSnarl(), MeuCounter(), and PrintNtpSt().

Int_t MeuCounter::entriesAll
 

Definition at line 21 of file MeuCounter.h.

Referenced by MeuAnalysis::MakeSummaryTreeWithNtpStOneSnarl(), MeuCounter(), and PrintNtpSt().

Int_t MeuCounter::entry
 

Definition at line 20 of file MeuCounter.h.

Referenced by MeuAnalysis::MakeSummaryTreeWithNtpStOneSnarl(), MeuCounter(), and PrintNtpSt().

Int_t MeuCounter::evtCounter
 

Definition at line 27 of file MeuCounter.h.

Referenced by MeuAnalysis::MakeSummaryTreeWithNtpStOneSnarl(), MeuCounter(), and PrintNtpSt().

Int_t MeuCounter::FCCounter
 

Definition at line 41 of file MeuCounter.h.

Referenced by MeuAnalysis::MakeSummaryTreeWithAtNu(), MeuAnalysis::MakeSummaryTreeWithNtpStOneSnarl(), MeuCounter(), PrintAtNu(), and PrintNtpSt().

Int_t MeuCounter::goodContainmentCounter
 

Definition at line 48 of file MeuCounter.h.

Referenced by MeuAnalysis::MakeSummaryTreeWithAtNu(), MeuAnalysis::MakeSummaryTreeWithNtpStOneSnarl(), MeuCounter(), PrintAtNu(), and PrintNtpSt().

Int_t MeuCounter::goodSpillCounter
 

Definition at line 25 of file MeuCounter.h.

Referenced by MeuAnalysis::MakeSummaryTreeWithNtpStOneSnarl(), MeuCounter(), and PrintNtpSt().

Int_t MeuCounter::goodWindowCounter
 

Definition at line 59 of file MeuCounter.h.

Referenced by MeuAnalysis::MakeSummaryTreeWithAtNu(), MeuAnalysis::MakeSummaryTreeWithNtpStOneSnarl(), MeuCounter(), PrintAtNu(), and PrintNtpSt().

Int_t MeuCounter::goodXYCounter
 

Definition at line 60 of file MeuCounter.h.

Referenced by MeuAnalysis::MakeSummaryTreeWithAtNu(), MeuCounter(), and PrintAtNu().

Int_t MeuCounter::longTrack2Counter
 

Definition at line 38 of file MeuCounter.h.

Referenced by MeuAnalysis::MakeSummaryTreeWithNtpStOneSnarl(), MeuCounter(), and PrintNtpSt().

Int_t MeuCounter::longTrackCounter
 

Definition at line 32 of file MeuCounter.h.

Referenced by MeuAnalysis::MakeSummaryTreeWithAtNu(), MeuAnalysis::MakeSummaryTreeWithNtpStOneSnarl(), MeuCounter(), PrintAtNu(), and PrintNtpSt().

Int_t MeuCounter::notEmptyEventCounter
 

Definition at line 36 of file MeuCounter.h.

Referenced by MeuAnalysis::MakeSummaryTreeWithNtpStOneSnarl(), MeuCounter(), and PrintNtpSt().

Int_t MeuCounter::notLICounter
 

Definition at line 34 of file MeuCounter.h.

Referenced by MeuAnalysis::MakeSummaryTreeWithAtNu(), MeuAnalysis::MakeSummaryTreeWithNtpStOneSnarl(), MeuCounter(), PrintAtNu(), and PrintNtpSt().

Int_t MeuCounter::oneEvtPerSlcCounter
 

Definition at line 31 of file MeuCounter.h.

Referenced by MeuAnalysis::MakeSummaryTreeWithNtpStOneSnarl(), MeuCounter(), and PrintNtpSt().

Int_t MeuCounter::oneTrackCounter
 

Definition at line 30 of file MeuCounter.h.

Referenced by MeuAnalysis::MakeSummaryTreeWithAtNu(), MeuAnalysis::MakeSummaryTreeWithNtpStOneSnarl(), MeuCounter(), PrintAtNu(), and PrintNtpSt().

Int_t MeuCounter::PCCounter
 

Definition at line 42 of file MeuCounter.h.

Referenced by MeuAnalysis::MakeSummaryTreeWithAtNu(), MeuAnalysis::MakeSummaryTreeWithNtpStOneSnarl(), MeuCounter(), PrintAtNu(), and PrintNtpSt().

Int_t MeuCounter::TGCounter
 

Definition at line 43 of file MeuCounter.h.

Referenced by MeuAnalysis::MakeSummaryTreeWithAtNu(), MeuAnalysis::MakeSummaryTreeWithNtpStOneSnarl(), MeuCounter(), PrintAtNu(), and PrintNtpSt().

Int_t MeuCounter::zeroEvtsCounter
 

Definition at line 26 of file MeuCounter.h.

Referenced by MeuAnalysis::MakeSummaryTreeWithNtpStOneSnarl(), MeuCounter(), and PrintNtpSt().


The documentation for this class was generated from the following files:
Generated on Mon Feb 15 11:09:33 2010 for loon by  doxygen 1.3.9.1