Skip to content
Snippets Groups Projects
Commit f8b5f84b authored by Mark K Jones's avatar Mark K Jones Committed by GitHub
Browse files

Merge pull request #157 from MarkKJones/hodo-patch

Modified THcHodoscope::FineProcess for dumping data for hodo calibrations
parents 130f7681 a3f7bc2c
No related branches found
No related tags found
No related merge requests found
......@@ -873,6 +873,7 @@ Int_t THcHodoscope::FineProcess( TClonesArray& tracks )
Int_t timehist[200];
// -------------------------------------------------
// fDumpOut << " ntrack = " << ntracks << endl;
if (tracks.GetLast()+1 > 0 ) {
......@@ -983,7 +984,7 @@ Int_t THcHodoscope::FineProcess( TClonesArray& tracks )
// Index to access the 2d arrays of paddle/scintillator properties
Int_t fPIndex = GetScinIndex(ip,paddle);
if ( TMath::Abs( scinCenter - scinTrnsCoord ) <
( fPlanes[ip]->GetSize() * 0.5 + fPlanes[ip]->GetHodoSlop() ) ){ // Line 293
......@@ -1090,7 +1091,7 @@ Int_t THcHodoscope::FineProcess( TClonesArray& tracks )
THcHodoHit *hit = fTOFPInfo[ih].hit;
Int_t iphit = fTOFPInfo[ih].hitNumInPlane;
Int_t ip = fTOFPInfo[ih].planeIndex;
// fDumpOut << " looping over hits = " << ih << " plane = " << ip+1 << endl;
GoodFlags flags;
// Flags are used by THcHodoEff
fGoodFlags[itrack][ip].push_back(flags);
......@@ -1347,6 +1348,10 @@ Int_t THcHodoscope::FineProcess( TClonesArray& tracks )
} // If condition for at least one track
if(fDumpTOF && ntracks==1 ) {
fDumpOut << "0 " << endl;
}
//-----------------------------------------------------------------------
//
// Trnslation of h_track_tests.f file for tracking efficiency
......@@ -1605,9 +1610,6 @@ Int_t THcHodoscope::FineProcess( TClonesArray& tracks )
( fChern->GetCerNPE() > fNCerNPE ) && ( tracks.GetLast() + 1 > 0 ) ) {
fScinDid = 1;
}
if(fDumpTOF && ntracks==1) {
fDumpOut << "0 " << endl;
}
return 0;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment