Fixing trigg.class issue
authorcoppedis <coppedis@f7af4fe6-9843-0410-8265-dc069ae4e863>
Wed, 17 Jul 2013 15:20:45 +0000 (15:20 +0000)
committercoppedis <coppedis@f7af4fe6-9843-0410-8265-dc069ae4e863>
Wed, 17 Jul 2013 15:20:45 +0000 (15:20 +0000)
PWGLF/FORWARD/GEO/AliAnalysisTaskZDCTreeMaker.cxx
PWGLF/FORWARD/GEO/AliAnalysisTaskZDCTreeMaker.h

index 25e42b9..2818c1e 100644 (file)
@@ -66,7 +66,6 @@ AliAnalysisTaskZDCTreeMaker::AliAnalysisTaskZDCTreeMaker():
     fUseSpecialOutput(kFALSE),
     fOutput(0x0),
     fCentralityTree(0x0),
-    fTrigClass(""),
     fIsEventSelected(kFALSE),
     fIsPileupFromSPD(kFALSE),
     fxVertex(0),        
@@ -96,6 +95,7 @@ AliAnalysisTaskZDCTreeMaker::AliAnalysisTaskZDCTreeMaker():
 {   
    // Default constructor
 
+  for(int i=0; i<100; i++) fTrigClass[i] = 0;
   fNClusters[0]=fNClusters[1]=0;
   for(Int_t itow=0; itow<5; itow++){
      fZNCtower[itow]=0.;  
@@ -131,7 +131,6 @@ AliAnalysisTaskZDCTreeMaker::AliAnalysisTaskZDCTreeMaker(const char *name):
     fUseSpecialOutput(kFALSE),
     fOutput(0x0),
     fCentralityTree(0x0),
-    fTrigClass(""),
     fIsEventSelected(kFALSE),
     fIsPileupFromSPD(kFALSE),
     fxVertex(0),        
@@ -161,6 +160,8 @@ AliAnalysisTaskZDCTreeMaker::AliAnalysisTaskZDCTreeMaker(const char *name):
     
 {
   // Default constructor
+
+  for(int i=0; i<100; i++) fTrigClass[i] = 0;
   fNClusters[0]=fNClusters[1]=0;
  
   for(Int_t itow=0; itow<5; itow++){
@@ -298,14 +299,13 @@ void AliAnalysisTaskZDCTreeMaker::UserExec(Option_t */*option*/)
       if(!fIsMCInput && esd->GetEventType()!=7) return; 
       
       // ***** Trigger selection
-      fTrigClass = esd->GetFiredTriggerClasses();
-      //TString triggerClass = esd->GetFiredTriggerClasses();
-      //sprintf(fTrigClass,"%s",triggerClass.Data());
+      TString triggerClass = esd->GetFiredTriggerClasses();
+      sprintf(fTrigClass,"%s",triggerClass.Data());
       
       // use response of AliPhysicsSelection
       fIsEventSelected = (((AliInputEventHandler*)(AliAnalysisManager::GetAnalysisManager()->GetInputEventHandler()))->IsEventSelected() & AliVEvent::kAnyINT);       
-      fIsPileupFromSPD = esd->IsPileupFromSPD(7,0.8);
-      //fIsPileupFromSPD = esd->IsPileupFromSPDInMultBins();
+      //fIsPileupFromSPD = esd->IsPileupFromSPD(6, 0.8);
+      fIsPileupFromSPD = esd->IsPileupFromSPDInMultBins();
 
       AliCentrality *centrality = esd->GetCentrality();
       fCentralityV0M = centrality->GetCentralityPercentile("V0M");
@@ -412,7 +412,7 @@ void AliAnalysisTaskZDCTreeMaker::UserExec(Option_t */*option*/)
       fCentralityZPC = centrality->GetCentralityPercentile("ZPC");
       
       // ***** Trigger selection
-      fTrigClass = aod->GetFiredTriggerClasses();
+      //fTrigClass = aod->GetFiredTriggerClasses();
       //TString triggerClass = aod->GetFiredTriggerClasses();
       //sprintf(fTrigClass,"%s",triggerClass.Data());
       
index 868f3ad..3d106e2 100644 (file)
@@ -46,7 +46,7 @@ class AliAnalysisTaskZDCTreeMaker : public AliAnalysisTaskSE {
   //
   TTree   *fCentralityTree;     //! output tree
   //
-  TString  fTrigClass;         //  fired trigger classes
+  char     fTrigClass[100];    //  fired trigger classes
   //
   Bool_t   fIsEventSelected;    //  is physics selection on
   Bool_t   fIsPileupFromSPD;   //  is pilue up from SPD
@@ -101,7 +101,7 @@ class AliAnalysisTaskZDCTreeMaker : public AliAnalysisTaskSE {
   AliAnalysisTaskZDCTreeMaker& operator= (const AliAnalysisTaskZDCTreeMaker& ana);
   AliAnalysisTaskZDCTreeMaker(const AliAnalysisTaskZDCTreeMaker& c);
   //
-  ClassDef(AliAnalysisTaskZDCTreeMaker, 5); 
+  ClassDef(AliAnalysisTaskZDCTreeMaker, 6); 
 
 };