coding violations
authorslindal <slindal@f7af4fe6-9843-0410-8265-dc069ae4e863>
Tue, 16 Nov 2010 09:15:09 +0000 (09:15 +0000)
committerslindal <slindal@f7af4fe6-9843-0410-8265-dc069ae4e863>
Tue, 16 Nov 2010 09:15:09 +0000 (09:15 +0000)
HLT/QA/tasks/AliAnalysisTaskHLTCalo.cxx
HLT/QA/tasks/AliAnalysisTaskHLTCalo.h

index b6de6bb..f589862 100644 (file)
@@ -72,7 +72,7 @@ AliAnalysisTaskHLTCalo::AliAnalysisTaskHLTCalo() : AliAnalysisTaskSE()
   ,fGlobalHistoProdArrOff(NULL)\r
   ,fGlobalHistoProdArrOn(NULL)\r
   ,fClustersArray(NULL)\r
-  ,fName("")\r
+  ,fCaloName("")\r
 {\r
   // Constructor\r
 \r
@@ -115,7 +115,7 @@ AliAnalysisTaskSE(name)
   ,fGlobalHistoProdArrOff(NULL)\r
   ,fGlobalHistoProdArrOn(NULL)\r
   ,fClustersArray(NULL)\r
-  ,fName(name)\r
+  ,fCaloName(name)\r
 {\r
   // Constructor\r
 \r
@@ -172,13 +172,13 @@ void AliAnalysisTaskHLTCalo::UserCreateOutputObjects(){
   fGlobalHistoProdArrOn = new TObjArray();\r
 \r
   \r
-  fGlobalHistoProdArrOff->AddLast(dynamic_cast<TObject*>(new AliHLTCaloHistoClusterEnergy(Form("%s_OFF", fName.Data()))));\r
-  fGlobalHistoProdArrOff->AddLast(dynamic_cast<TObject*>(new AliHLTCaloHistoInvMass(Form("%s_OFF", fName.Data() ))));\r
-  fGlobalHistoProdArrOff->AddLast(dynamic_cast<TObject*>(new AliHLTCaloHistoMatchedTracks(Form("%s_OFF", fName.Data() ))));\r
+  fGlobalHistoProdArrOff->AddLast(dynamic_cast<TObject*>(new AliHLTCaloHistoClusterEnergy(Form("%s_OFF", fCaloName.Data()))));\r
+  fGlobalHistoProdArrOff->AddLast(dynamic_cast<TObject*>(new AliHLTCaloHistoInvMass(Form("%s_OFF", fCaloName.Data() ))));\r
+  fGlobalHistoProdArrOff->AddLast(dynamic_cast<TObject*>(new AliHLTCaloHistoMatchedTracks(Form("%s_OFF", fCaloName.Data() ))));\r
 \r
-  fGlobalHistoProdArrOn->AddLast(dynamic_cast<TObject*>(new AliHLTCaloHistoClusterEnergy(Form("%s_ON", fName.Data() ))));\r
-  fGlobalHistoProdArrOn->AddLast(dynamic_cast<TObject*>(new AliHLTCaloHistoInvMass(Form("%s_ON", fName.Data() ))));\r
-  fGlobalHistoProdArrOn->AddLast(dynamic_cast<TObject*>(new AliHLTCaloHistoMatchedTracks(Form("%s_ON", fName.Data() ))));\r
+  fGlobalHistoProdArrOn->AddLast(dynamic_cast<TObject*>(new AliHLTCaloHistoClusterEnergy(Form("%s_ON", fCaloName.Data() ))));\r
+  fGlobalHistoProdArrOn->AddLast(dynamic_cast<TObject*>(new AliHLTCaloHistoInvMass(Form("%s_ON", fCaloName.Data() ))));\r
+  fGlobalHistoProdArrOn->AddLast(dynamic_cast<TObject*>(new AliHLTCaloHistoMatchedTracks(Form("%s_ON", fCaloName.Data() ))));\r
 \r
   fClustersArray = new TRefArray();\r
 \r
index 7a195a0..a2f4e84 100644 (file)
@@ -39,8 +39,8 @@ public:
   //virtual Bool_t Notify();\r
   virtual void NotifyRun();\r
 \r
-  virtual void DoSpecificStuff(AliESDEvent* /*evESD*/, AliESDEvent* /*evHLTESD*/) {return;}\r
-  virtual void CreateSpecificStuff(TList* /*fOutputList*/) {return;}\r
+  virtual void DoSpecificStuff(const AliESDEvent * /*evESD*/, const AliESDEvent * /*evHLTESD*/) {return;}\r
+  virtual void CreateSpecificStuff(const TList  * /*fOutputList*/) {return;}\r
   virtual Bool_t IsThisDetector(AliESDCaloCluster * cluster) { return cluster->IsPHOS(); }\r
   virtual Int_t GetClusters(AliESDEvent * event, TRefArray * clusters) { return event->GetPHOSClusters(clusters); }\r
  \r
@@ -48,47 +48,46 @@ public:
   void SetUseHLTTriggerDecision(Bool_t useHLT = kFALSE) {fUseHLTTrigger = useHLT;}\r
 \r
 private:\r
+    Bool_t fUseHLTTrigger; \r
+  AliESDRun *fESDRun;  //!Transient, pointer to esds\r
+  TList *fOutputList;  //List of histograms to be stored\r
   \r
-  Bool_t fUseHLTTrigger; \r
-  AliESDRun *fESDRun;  //!\r
-  TList *fOutputList;\r
-  \r
-  TH1F *fHistOfflResiduals; \r
-  TH1F *fHistOnlResiduals; \r
-  TH1F *fHistOfflDz; \r
-  TH1F *fHistOnlDz; \r
-  TH1F *fHistOfflDxy; \r
-  TH1F *fHistOnlDxy; \r
+  TH1F *fHistOfflResiduals; //histogram\r
+  TH1F *fHistOnlResiduals; //histogram\r
+  TH1F *fHistOfflDz; //histogram\r
+  TH1F *fHistOnlDz; //histogram\r
+  TH1F *fHistOfflDxy; //histogram\r
+  TH1F *fHistOnlDxy; //histogram\r
 \r
 \r
-  TH1F *fHistOfflResidualsPos; \r
-  TH1F *fHistOnlResidualsPos; \r
-  TH1F *fHistOfflDzPos; \r
-  TH1F *fHistOnlDzPos; \r
-  TH1F *fHistOfflDxyPos; \r
-  TH1F *fHistOnlDxyPos; \r
+  TH1F *fHistOfflResidualsPos; //histogram\r
+  TH1F *fHistOnlResidualsPos; //histogram\r
+  TH1F *fHistOfflDzPos; //histogram\r
+  TH1F *fHistOnlDzPos; //histogram\r
+  TH1F *fHistOfflDxyPos; //histogram\r
+  TH1F *fHistOnlDxyPos; //histogram\r
 \r
 \r
-  TH1F *fHistOfflResidualsNeg; \r
-  TH1F *fHistOnlResidualsNeg; \r
-  TH1F *fHistOfflDzNeg; \r
-  TH1F *fHistOnlDzNeg; \r
-  TH1F *fHistOfflDxyNeg; \r
-  TH1F *fHistOnlDxyNeg; \r
+  TH1F *fHistOfflResidualsNeg; //histogram\r
+  TH1F *fHistOnlResidualsNeg; //histogram\r
+  TH1F *fHistOfflDzNeg; //histogram\r
+  TH1F *fHistOnlDzNeg; //histogram\r
+  TH1F *fHistOfflDxyNeg; //histogram\r
+  TH1F *fHistOnlDxyNeg; //histogram\r
 \r
-  TH2F * fHistNclvsNcl; \r
-  TH2F * fHistTotEVsTotE;\r
+  TH2F * fHistNclvsNcl; //histogram\r
+  TH2F * fHistTotEVsTotE;//histogram\r
 \r
   \r
-  Int_t fNevt;\r
-  TObjArray *fTrgClsArray;\r
+  Int_t fNevt; //Number of events\r
+  TObjArray *fTrgClsArray; //Trigger cluster array\r
   \r
-  TObjArray * fGlobalHistoProdArrOff; //!transient \r
-  TObjArray * fGlobalHistoProdArrOn; //!transient \r
+  TObjArray * fGlobalHistoProdArrOff; //!transient array of histogram producer classes \r
+  TObjArray * fGlobalHistoProdArrOn; //!transient array of histogram producer classes \r
 \r
-  TRefArray * fClustersArray; //!transient\r
+  TRefArray * fClustersArray; //!transient Array to contain calo clusters\r
 \r
-  TString fName; //!transient\r
+  TString fCaloName; //!transient PHOS or EMCAL\r
 \r
   /** copy constructor */\r
   AliAnalysisTaskHLTCalo(const AliAnalysisTaskHLTCalo&); \r