#include "AliTOFReconstructor.h"
#include "AliTOFRecoParam.h"
+using std::endl;
+using std::cout;
+using std::ofstream;
+using std::ios;
ClassImp(AliTOFClusterFinderV1)
//_____________________________________________________________________________
fRecPoints(new TClonesArray("AliTOFcluster", 4000)),
fNumberOfTofClusters(0),
fNumberOfTofDigits(0),
+ fNumberOfTofTrgPads(0),
fkRecoParam(0),//AliTOFReconstructor::GetRecoParam()),
fMaxDeltaTime(0),//fkRecoParam->GetMaxDeltaTime()),
fVerbose(0),
fRecPoints(new TClonesArray("AliTOFcluster", 4000)),
fNumberOfTofClusters(0),
fNumberOfTofDigits(0),
+ fNumberOfTofTrgPads(0),
fkRecoParam(0),//AliTOFReconstructor::GetRecoParam()),
fMaxDeltaTime(0),//fkRecoParam->GetMaxDeltaTime()),
fVerbose(0),
fRecPoints(source.fRecPoints),
fNumberOfTofClusters(0),
fNumberOfTofDigits(0),
+ fNumberOfTofTrgPads(0),
fkRecoParam(0),//AliTOFReconstructor::GetRecoParam()),
fMaxDeltaTime(0),//fkRecoParam->GetMaxDeltaTime()),
fVerbose(0),
for (Int_t ii=0; ii<kTofMaxCluster; ii++) fTofClusters[ii]=source.fTofClusters[ii];
fDigits=source.fDigits;
fRecPoints=source.fRecPoints;
+ fNumberOfTofClusters=source.fNumberOfTofClusters;
+ fNumberOfTofTrgPads=source.fNumberOfTofTrgPads;
+ fNumberOfTofDigits=source.fNumberOfTofDigits;
fVerbose=source.fVerbose;
fDecoderVersion=source.fDecoderVersion;
fTOFcalib=source.fTOFcalib;
Int_t inholes = 0;
+ ResetRecpoint();
+
fDigits->Clear();
TClonesArray &aDigits = *fDigits;
AliDebug(1,Form("Number of found clusters: %d", fNumberOfTofClusters));
- ResetRecpoint();
+// ResetRecpoint();
fTOFdigitMap->Clear();
TStopwatch stopwatch;
stopwatch.Start();
+ ResetRecpoint();
AliDebug(2, "TreeD re-creation");
//TTree *digitsTree = new TTree();
AliDebug(1,Form("Number of found clusters: %d", fNumberOfTofClusters));
- ResetRecpoint();
+// ResetRecpoint();
fTOFdigitMap->Clear();
digit[2] = tofRawDatum->GetTOT();
digit[3] = -1;//tofRawDatum->GetTOF(); //tofND
+ // noferini
+ Float_t pos[3];
+ AliTOFGeometry::GetPosPar(detectorIndex, pos);
+ Float_t length = 0.;
+ for (Int_t ic = 0; ic < 3; ic++) length += pos[ic] * pos[ic];
+ length = TMath::Sqrt(length);
+ Float_t timealligned = tdcCorr*24.4 - length * 0.0333564095198152043; // subtract the minimal time in
+
+ if(status && timealligned > -1000 && timealligned < 24000){
+ fNumberOfTofTrgPads++;
+ }
+
dummy = detectorIndex[3];
detectorIndex[3] = detectorIndex[4];//padx
detectorIndex[4] = dummy;//padz
last = fDigits->GetEntriesFast();
new (aDigits[last]) AliTOFdigit(tracks, detectorIndex, digit);
if (status) fTOFdigitMap->AddDigit(detectorIndex, last);
+
if (fVerbose==2) {
if (indexDDL<10) ftxt << " " << indexDDL;
//
fNumberOfTofClusters = 0;
+ fNumberOfTofTrgPads = 0;
if (fRecPoints) fRecPoints->Clear();
}
//
fNumberOfTofDigits = 0;
+ fNumberOfTofTrgPads = 0;
if (fDigits) fDigits->Clear();
}