fPhosHistogramArray(NULL),
fEmcalHistogramArray(NULL),
fDoEmcal(kFALSE),
- fDoPhos(kFALSE)
-
+ fDoPhos(kFALSE),
+ fCutOnCentrality(kFALSE),
+ fCentralityCut(0.9),
+ fCentralityCutEnergy(0.5)
{
//see header file for documentation
}
HLTImportant("Adding PHOS track-matching histograms");
}
}
-
+
+ else if(!strcmp("-cutoncentrality", argv[i])) {
+ fCentralityCut = kTRUE;
+ HLTImportant("Cutting on centrality");
+
+ }
+
+
else {
HLTError("Unknown argument \"%s\"", argv[i]);
}
Bool_t cutCluster = false;
while( (clusterStruct = fClusterReader->NextCluster()) != 0) {
cutCluster = false;
-
- if(clusterStruct->fEnergy > 0.5) {
- for(UInt_t i = 0; i < clusterStruct->fNCells; i++) {
- fClusterReader->GetCell(clusterStruct, cellId, ampFrac, i);
- if(ampFrac > 0.9) {
- cutCluster = true;
- break;
- }
+ if(fCutOnCentrality){
+ if(clusterStruct->fEnergy > 0.5) {
+ for(UInt_t i = 0; i < clusterStruct->fNCells; i++) {
+ fClusterReader->GetCell(clusterStruct, cellId, ampFrac, i);
+ if(ampFrac > 0.9) {
+ cutCluster = true;
+ break;
+ }
+ }
+ }
}
- }
if(!cutCluster) {
clustersVector.push_back(clusterStruct);
Bool_t fDoEmcal; //Fill EMCAL histos?
Bool_t fDoPhos; //Fill PHOS histos?
+
+ Bool_t fCutOnCentrality; // Cut on centrality on cluters with high energy
+ Float_t fCentralityCut; //How large fraction of the energy do we want in the central tower to make the cut?
+ Float_t fCentralityCutEnergy; //The minimum energy of the cluster to make the cut.
ClassDef(AliHLTCaloHistoComponent, 0);