#include "AliTRDtrigParam.h"
#include "AliTRDmcm.h"
#include "AliTRDzmaps.h"
+#include "AliTRDCalibra.h"
#include "Cal/AliTRDCalPIDLQ.h"
ClassImp(AliTRDtrigger)
return kFALSE;
}
- // Open input
- if (fRunLoader->GetAliRun() == 0x0) {
- fRunLoader->LoadgAlice();
- }
- gAlice = fRunLoader->GetAliRun();
- if (!(gAlice)) {
- fRunLoader->LoadgAlice();
- gAlice = fRunLoader->GetAliRun();
- if (!(gAlice)) {
- AliError("Could not find AliRun object.");
- return kFALSE;
- }
- }
-
// Import the Trees for the event nEvent in the file
fRunLoader->GetEvent(nEvent);
AliInfo(Form("Add tracklet %d in col %02d \n",fNtracklets,fMCM->GetSeedCol()[iSeed]));
}
- if (fTrigParam->GetDebugLevel() == -1) {
- AliInfo(Form("Add tracklet %d in col %02d \n",fNtracklets,fMCM->GetSeedCol()[iSeed]));
- for (time = 0; time < nTimeTotal; time++) {
- for (col = 0; col < kMcmCol; col++) {
- printf("%03.0f ",fMCM->GetADC(col,time));
- }
- printf("\n");
- }
- }
-
if (TestTracklet(idet,row,iSeed,0)) {
AddTracklet(idet,row,iSeed,fNtracklets++);
}
Int_t nTimeTotal = fCalib->GetNumberOfTimeBins();
+ // Calibration fill 2D
+ AliTRDCalibra *calibra = AliTRDCalibra::Instance();
+ if (!calibra) {
+ AliInfo("Could not get Calibra instance\n");
+ }
+
fTrkTest->Reset();
fTrkTest->SetDetector(det);
}
*/
// LTU Pt cut
-
fTrkTest->MakeTrackletGraph(fGeo,fField);
+
+ // TRD Online calibration
+ if (calibra->GetMcmTracking()) {
+ calibra->UpdateHistogramcm(fTrkTest);
+ }
+
fTrkTest->MakeClusAmpGraph();
+
if (TMath::Abs(fTrkTest->GetPt()) < fTrigParam->GetLtuPtCut()) {
return kFALSE;
}