AliAnaCaloTrackCorrMaker * maker = new AliAnaCaloTrackCorrMaker();
+ maker->SetScaleFactor(scaleFactor); // for MC, negative (not scaled) by default
+
// General frame setting and configuration
maker->SetReader (ConfigureReader() );
maker->SetCaloUtils(ConfigureCaloUtils());
AliAnalysisManager::kOutputContainer,
Form("%s",outputfile.Data()));
- AliAnalysisDataContainer *cout_cuts = mgr->CreateContainer(Form("Cuts_%s",kName.Data()), TList::Class(),
+ AliAnalysisDataContainer *cout_cuts = mgr->CreateContainer(Form("Param_%s",kName.Data()), TList::Class(),
AliAnalysisManager::kParamContainer,
- Form("%s",outputfile.Data()));
+ "AnalysisParameters.root");
// Create ONLY the output containers for the data produced by the task.
// Get and connect other common input/output containers via the manager as below
task->SelectCollisionCandidates(AliVEvent::kSemiCentral);
}
- //------------------------------------------------
- // Scaling task, for MC in different pT hard bins
- //-----------------------------------------------
- if(scaleFactor > 0)
- {
-
- AliAnaScale * scale = new AliAnaScale("scale") ;
- scale->Set(scaleFactor) ;
- scale->MakeSumw2(kTRUE);//If you want histograms with error bars set to kTRUE
- scale->SetDebugLevel(2);
- mgr->AddTask(scale);
-
- AliAnalysisDataContainer *cout_XS = mgr->CreateContainer(Form("scaled%s",kName.Data()),
- TList::Class(),
- AliAnalysisManager::kOutputContainer,
- Form("scaled%s.root",kName.Data()));
- mgr->ConnectInput (scale, 0, cout_pc);
- mgr->ConnectOutput (scale, 0, cout_XS);
-
- }
-
-
return task;
}
if(kCollisions=="pp")
{
ic->SetPtThreshold(0.5);
- ic->SetConeSize(0.4);
+ ic->SetConeSize(0.5);
}
if(kCollisions=="PbPb")
{
GetAverageXsection(chainxs, xsection, ntrials);
- scale = xsection/ntrials/chain->GetEntries();
+ Int_t nEventsPerFile = chain->GetEntries() / nfiles;
+
+ Double_t trials = ntrials / nEventsPerFile ;
+
+ scale = xsection/trials;
+
+ printf("Get Cross section : nfiles %d, nevents %d, nevents per file %d \n",nfiles, chain->GetEntries(),nEventsPerFile);
+ printf(" ntrials %d, trials %2.2f, xs %2.2e, scale factor %2.2e\n", ntrials,trials,xsection,scale);
- printf("Get Cross section , nfiles = %d, nevents %d, ntrials %d, xs %2.3e, scale factor %e\n",nfiles,chain->GetEntries(),ntrials,xsection,scale);
}
printf("*********************************************\n");
// Calibration, bad map ...
- Bool_t calibEE = kTRUE; // It is set automatically, but here we force to use ir or not in any case
- Bool_t calibTT = kTRUE; // It is set automatically, but here we force to use ir or not in any case
+ Bool_t calibEE = kTRUE; // It is set automatically, but here we force to use it or not in any case
+ Bool_t calibTT = kTRUE; // It is set automatically, but here we force to use it or not in any case
if(kRun < 122195 || (kRun > 126437 && kRun < 136851) || kMC) calibTT=kFALSE ; // Recalibration parameters not available for LHC10a,b,c,e,f,g
- Bool_t badMap = kTRUE; // It is set automatically, but here we force to use ir or not in any case
+ Bool_t badMap = kTRUE; // It is set automatically, but here we force to use it or not in any case
if(kCollision=="pp")
{