]> git.uio.no Git - u/mrichter/AliRoot.git/blobdiff - HLT/trigger/AliHLTTriggerEmcalElectron.cxx
changed declaration of HLTScalers to get rid of warnings
[u/mrichter/AliRoot.git] / HLT / trigger / AliHLTTriggerEmcalElectron.cxx
index 4913bd1182e77f21c72a8e578182eae64ea10889..8b9addd486a6b48f25f1e608407233cf113352b5 100644 (file)
@@ -36,7 +36,6 @@ AliHLTTriggerEmcalElectron::AliHLTTriggerEmcalElectron() :
   fEThreshold(0.0),
   fEoverPThreshold(0.),
   fEoverPLimit(0.),
-  fMakeStats(kFALSE),
   fdEta(1.),
   fdPhi(1.),
   
@@ -45,7 +44,8 @@ AliHLTTriggerEmcalElectron::AliHLTTriggerEmcalElectron() :
   fOCDBEntry("HLT/ConfigHLT/EmcalElectronTrigger"),
 //   fOCDBEntry(""), 
   fDetector("EMCAL"),
-  fInputDataType()
+  fInputDataType(),
+  fMakeStats(kFALSE)
 {
   // see header file for class documentation
   // or
@@ -53,7 +53,8 @@ AliHLTTriggerEmcalElectron::AliHLTTriggerEmcalElectron() :
   // or
   // visit http://web.ift.uib.no/~kjeks/doc/alice-hlts
 
-  if ( fMakeStats ) AliHLTScalars scalars;
+  //if ( fMakeStats ) AliHLTScalars scalars;
+  //AliHLTScalars scalars;
 //   fClusterReader = new AliHLTCaloClusterReader();
 //   fClustersRefs = new TRefArray();
 
@@ -86,7 +87,7 @@ Int_t AliHLTTriggerEmcalElectron::DoTrigger() {
   // see header file for class documentation
   
   Int_t iResult = 0;
-
+  AliHLTScalars scalars;
 
   if ( GetFirstInputBlock( kAliHLTDataTypeSOR ) || GetFirstInputBlock( kAliHLTDataTypeEOR ) )
     return 0;
@@ -143,6 +144,8 @@ Int_t AliHLTTriggerEmcalElectron::DoTrigger() {
 template <class T>
 Bool_t AliHLTTriggerEmcalElectron::TriggerOnEoverP(T* cluster,AliESDEvent *esd) {
   
+  AliHLTScalars scalars;
+  
   if (cluster->E() > fEThreshold) {    
 
       Int_t trackindex=cluster->GetTrackMatchedIndex();