end-of-line normalization
[u/mrichter/AliRoot.git] / HLT / trigger / tasks / AliAnalysisTasktrigger.h
index 42bab69..9613686 100644 (file)
-//-*- Mode: C++ -*-\r
-\r
-#ifndef ALIANALYSISTASKTRIGGER_H\r
-#define ALIANALYSISTASKTRIGGER_H\r
-\r
-/* Copyright(c) 1998-1999, ALICE Experiment at CERN, All rights reserved. *\r
- * See cxx source for full Copyright notice                               */\r
-\r
-// Study trigger efficiencies for high-pt trigger\r
-// Author: Jochen Thaeder <jochen@thaeder.de> \r
-\r
-#include "AliAnalysisTaskSE.h"\r
-\r
-class TH1F;\r
-class AliESDEvent;\r
-class AliMCEvent;\r
-class AliKineTrackCuts;\r
-\r
-#include "AliStack.h"\r
-#include "TParticle.h"\r
-#include "TRandom3.h"\r
-\r
-class AliAnalysisTasktrigger : public AliAnalysisTaskSE {\r
-\r
- public:\r
-\r
-  /*\r
-   * ---------------------------------------------------------------------------------\r
-   *                            Constructor / Destructor\r
-   * ---------------------------------------------------------------------------------\r
-   */\r
-\r
-  AliAnalysisTasktrigger(const char *name = "AliAnalysisTasktrigger");\r
-  virtual ~AliAnalysisTasktrigger();\r
-  \r
-  /*\r
-   * ---------------------------------------------------------------------------------\r
-   *                                    Methods\r
-   * ---------------------------------------------------------------------------------\r
-   */\r
-\r
-  virtual void UserCreateOutputObjects();\r
-  virtual void UserExec(Option_t *option);\r
-\r
-  ///////////////////////////////////////////////////////////////////////////////////\r
-\r
- private:\r
-\r
-  AliAnalysisTasktrigger(const AliAnalysisTasktrigger&); // not implemented\r
-  AliAnalysisTasktrigger& operator=(const AliAnalysisTasktrigger&); // not implemented\r
-\r
-  /*\r
-   * ---------------------------------------------------------------------------------\r
-   *                            Setup Methods - private\r
-   * ---------------------------------------------------------------------------------\r
-   */\r
-\r
-  Bool_t SetupEvent();\r
-\r
-  void   SetupESDTrackCuts();  \r
-\r
-  void   SetupTrigHistograms();\r
-  void   SetupPtHistograms();\r
-  void   SetupMultHistograms();\r
-\r
-  /*\r
-   * ---------------------------------------------------------------------------------\r
-   *                            Helper Methods - private\r
-   * ---------------------------------------------------------------------------------\r
-   */\r
-  \r
-  TParticle* GetChargedPhysicalPrimary( AliStack* stack, Int_t idx );\r
-  Bool_t IsFindableMC(Int_t idx, Float_t length);\r
-\r
-  void AddTriggerHist( TH1F* hist );\r
-  void AddPtHist( TH1F* hist );\r
-  void AddMultHist( TH1F* hist );\r
-  \r
-  /*\r
-   * ---------------------------------------------------------------------------------\r
-   *                            Trigger Methods - private\r
-   * ---------------------------------------------------------------------------------\r
-   */\r
-  \r
-  void EvaluateTrigger();\r
-\r
-  /*\r
-   * ---------------------------------------------------------------------------------\r
-   *                              Fill Methods - private\r
-   * ---------------------------------------------------------------------------------\r
-   */\r
-\r
-  void FillCutStudies( Int_t mode );\r
-  void FillCounters( Int_t mode );\r
-  void FillTriggerHistograms();\r
-\r
-  void FillTriggerStudies();\r
-  void FillTriggerStudiesMC();\r
-\r
-  /*\r
-   * ---------------------------------------------------------------------------------\r
-   *                         Static Members - private\r
-   * ---------------------------------------------------------------------------------\r
-   */\r
-\r
-  static const Int_t     fgkNSettings;       // N Settings\r
-  static const Int_t     fgkNTrigger;        // N Trigger \r
-\r
-  static const Double_t  fgkTriggerPt[];     // Array of Pt Settings\r
-  static const Char_t   *fgkTrigger[];       // Array of Trigger Names\r
-\r
-  static const Int_t     fgkNSelectionCuts;  // N Selection and Cut Types\r
-  static const Char_t   *fgkSelectionCuts[]; // Selection and Cut Types\r
-\r
-  enum mode {kOFF, kHLT, kMC, kNModes};\r
-\r
-  /*\r
-   * ---------------------------------------------------------------------------------\r
-   *                             Members - private\r
-   * ---------------------------------------------------------------------------------\r
-   */\r
-  TRandom3        *fRandom;                  //! Random Generator\r
-\r
-  AliMCEvent      *fMC;                      //! MC object\r
-  AliESDEvent     *fESD;                     //! ESD object\r
-  AliESDEvent     *fESDHLT;                  //! ESD - HLT object\r
-\r
-  AliESDtrackCuts *fESDTrackCuts;            //! ESD cuts  \r
-  AliESDtrackCuts *fESDHLTTrackCuts;         //! HLT adopted track cuts \r
-  AliKineTrackCuts*fMCTrackCuts;             //! MC track cuts\r
-\r
-  Bool_t           fIsSelected;              //! Event Selected by physics selection + Primary Vertex\r
-  Bool_t           fIsSelectedHLT;           //! HLT Event Selected by physics selection + Primary Vertex\r
-  Bool_t           fIsSelectedMC;            //! MC Event Selected by physics selection + Primary Vertex\r
-\r
-  Bool_t           fIsSelectedTask;          //! Event Selected by physics selection\r
-\r
-  TObjArray       *fOutputContainer;         //! output data container\r
-\r
-  // --------------------------------------------------------------------\r
-\r
-  Int_t           *fPtCount;                 //! Pt count per setting [kNModes*fgkTrigger]\r
-  Int_t           *fMultiplicity;            //! Multiplicty counters [fgkNSelectionCuts]\r
-\r
-  // --------------------------------------------------------------------\r
-\r
-  Bool_t          *fTrigger;                 // Trigger [kNModes*fgkNTrigger]\r
-\r
-  ClassDef(AliAnalysisTasktrigger, 3);\r
-};\r
-\r
-#endif\r
+//-*- Mode: C++ -*-
+
+#ifndef ALIANALYSISTASKTRIGGER_H
+#define ALIANALYSISTASKTRIGGER_H
+
+/* Copyright(c) 1998-1999, ALICE Experiment at CERN, All rights reserved. *
+ * See cxx source for full Copyright notice                               */
+
+// Study trigger efficiencies for high-pt trigger
+// Author: Jochen Thaeder <jochen@thaeder.de> 
+
+#include "AliAnalysisTaskSE.h"
+
+class TH1F;
+class AliESDEvent;
+class AliMCEvent;
+class AliKineTrackCuts;
+
+#include "AliStack.h"
+#include "TParticle.h"
+#include "TRandom3.h"
+
+class AliAnalysisTasktrigger : public AliAnalysisTaskSE {
+
+ public:
+
+  /*
+   * ---------------------------------------------------------------------------------
+   *                            Constructor / Destructor
+   * ---------------------------------------------------------------------------------
+   */
+
+  AliAnalysisTasktrigger(const char *name = "AliAnalysisTasktrigger");
+  virtual ~AliAnalysisTasktrigger();
+  
+  /*
+   * ---------------------------------------------------------------------------------
+   *                                    Methods
+   * ---------------------------------------------------------------------------------
+   */
+
+  virtual void UserCreateOutputObjects();
+  virtual void UserExec(Option_t *option);
+
+  ///////////////////////////////////////////////////////////////////////////////////
+
+ private:
+
+  AliAnalysisTasktrigger(const AliAnalysisTasktrigger&); // not implemented
+  AliAnalysisTasktrigger& operator=(const AliAnalysisTasktrigger&); // not implemented
+
+  /*
+   * ---------------------------------------------------------------------------------
+   *                            Setup Methods - private
+   * ---------------------------------------------------------------------------------
+   */
+
+  Bool_t SetupEvent();
+
+  void   SetupESDTrackCuts();  
+
+  void   SetupTrigHistograms();
+  void   SetupPtHistograms();
+  void   SetupMultHistograms();
+
+  /*
+   * ---------------------------------------------------------------------------------
+   *                            Helper Methods - private
+   * ---------------------------------------------------------------------------------
+   */
+  
+  TParticle* GetChargedPhysicalPrimary( AliStack* stack, Int_t idx );
+  Bool_t IsFindableMC(Int_t idx, Float_t length);
+
+  void AddTriggerHist( TH1F* hist );
+  void AddPtHist( TH1F* hist );
+  void AddMultHist( TH1F* hist );
+  
+  /*
+   * ---------------------------------------------------------------------------------
+   *                            Trigger Methods - private
+   * ---------------------------------------------------------------------------------
+   */
+  
+  void EvaluateTrigger();
+
+  /*
+   * ---------------------------------------------------------------------------------
+   *                              Fill Methods - private
+   * ---------------------------------------------------------------------------------
+   */
+
+  void FillCutStudies( Int_t mode );
+  void FillCounters( Int_t mode );
+  void FillTriggerHistograms();
+
+  void FillTriggerStudies();
+  void FillTriggerStudiesMC();
+
+  /*
+   * ---------------------------------------------------------------------------------
+   *                         Static Members - private
+   * ---------------------------------------------------------------------------------
+   */
+
+  static const Int_t     fgkNSettings;       // N Settings
+  static const Int_t     fgkNTrigger;        // N Trigger 
+
+  static const Double_t  fgkTriggerPt[];     // Array of Pt Settings
+  static const Char_t   *fgkTrigger[];       // Array of Trigger Names
+
+  static const Int_t     fgkNSelectionCuts;  // N Selection and Cut Types
+  static const Char_t   *fgkSelectionCuts[]; // Selection and Cut Types
+
+  enum mode {kOFF, kHLT, kMC, kNModes};
+
+  /*
+   * ---------------------------------------------------------------------------------
+   *                             Members - private
+   * ---------------------------------------------------------------------------------
+   */
+  TRandom3        *fRandom;                  //! Random Generator
+
+  AliMCEvent      *fMC;                      //! MC object
+  AliESDEvent     *fESD;                     //! ESD object
+  AliESDEvent     *fESDHLT;                  //! ESD - HLT object
+
+  AliESDtrackCuts *fESDTrackCuts;            //! ESD cuts  
+  AliESDtrackCuts *fESDHLTTrackCuts;         //! HLT adopted track cuts 
+  AliKineTrackCuts*fMCTrackCuts;             //! MC track cuts
+
+  Bool_t           fIsSelected;              //! Event Selected by physics selection + Primary Vertex
+  Bool_t           fIsSelectedHLT;           //! HLT Event Selected by physics selection + Primary Vertex
+  Bool_t           fIsSelectedMC;            //! MC Event Selected by physics selection + Primary Vertex
+
+  Bool_t           fIsSelectedTask;          //! Event Selected by physics selection
+
+  TObjArray       *fOutputContainer;         //! output data container
+
+  // --------------------------------------------------------------------
+
+  Int_t           *fPtCount;                 //! Pt count per setting [kNModes*fgkTrigger]
+  Int_t           *fMultiplicity;            //! Multiplicty counters [fgkNSelectionCuts]
+
+  // --------------------------------------------------------------------
+
+  Bool_t          *fTrigger;                 // Trigger [kNModes*fgkNTrigger]
+
+  ClassDef(AliAnalysisTasktrigger, 3);
+};
+
+#endif