]> git.uio.no Git - u/mrichter/AliRoot.git/blob - HLT/trigger/AliHLTD0Trigger.h
Update of the SSD on-line clusterfinder:
[u/mrichter/AliRoot.git] / HLT / trigger / AliHLTD0Trigger.h
1 //-*- Mode: C++ -*-
2 // $Id: AliHLTD0Trigger.h 
3 #ifndef ALIHLTD0TRIGGER_H
4 #define ALIHLTD0TRIGGER_H
5 //* This file is property of and copyright by the ALICE HLT Project        * 
6 //* ALICE Experiment at CERN, All rights reserved.                         *
7 //* See cxx source for full Copyright notice                               *
8
9 /// @file   AliHLTD0Trigger.h
10 /// @author Gaute Ovrebekk
11 /// @date   2009-10-28
12 /// @brief  HLT trigger component for D0->Kpi
13
14 #include "AliHLTTrigger.h"
15 #include <vector>
16 #include "AliHLTD0toKpi.h"
17
18 class TH1F;
19 class TObjArray;
20 class AliESDVertex;
21 class AliExternalTrackParam;
22
23 /**
24  * @class  AliHLTD0Trigger
25  *
26  * HLT trigger component for D0->Kpi
27  *
28  * <h2>General properties:</h2>
29  *
30  * Component ID: \b D0Trigger                             <br>
31  * Library: \b libAliHLTTrigger.so                                        <br>
32  * Input Data Types:  kAliHLTDataTypeESDObject, kAliHLTDataTypeESDTree
33  *                    kAliHLTDataTypeTrack                                <br>
34  * Output Data Types: ::kAliHLTAnyDataType                                <br>
35  *
36  * <h2>Mandatory arguments:</h2>
37  * <!-- NOTE: ignore the \li. <i> and </i>: it's just doxygen formatting -->
38  *
39  * <h2>Optional arguments:</h2>
40  * <!-- NOTE: ignore the \li. <i> and </i>: it's just doxygen formatting -->
41  *
42  * <h2>Configuration:</h2>
43  * <!-- NOTE: ignore the \li. <i> and </i>: it's just doxygen formatting -->
44  * \li -pt    <i> pt cut for decay products </i> <br>
45  * \li -dca    <i> dca cut for distance between decay tracks  </i> <br>
46  * \li -invmass    <i> inv. mass half width of D0  </i> <br>
47  * \li -costhetastar    <i> cos of decay angle  </i> <br>
48  * \li -d0    <i> Impact parameter for decay products  </i> <br>
49  * \li -d0d0    <i> Product of impact parameter for decay products  </i> <br>
50  * \li -cospoint    <i> pointing angle  </i> <br>
51  * \li -plothistogram    <i> ploting the inv. mass histogram  </i> <br>
52  *
53  * By default, configuration is loaded from OCDB, can be overridden by
54  * component arguments.
55  *
56  * <h2>Default CDB entries:</h2>
57  * HLT/ConfigHLT/D0Trigger: TObjString storing the arguments
58  *
59  * <h2>Performance:</h2>
60  * 
61  *
62  * <h2>Memory consumption:</h2>
63  * 
64  *
65  * <h2>Output size:</h2>
66  * 
67  *
68  * \ingroup alihlt_trigger_components
69  */
70 class AliHLTD0Trigger : public AliHLTTrigger
71 {
72  public:
73   AliHLTD0Trigger();
74   ~AliHLTD0Trigger();
75
76   /// inherited from AliHLTTrigger: name of this trigger
77   virtual const char* GetTriggerName() const;
78   /// inherited from AliHLTComponent: create an instance
79   virtual AliHLTComponent* Spawn();
80
81  protected:
82   /// inherited from AliHLTComponent: handle the initialization
83   int DoInit(int argc, const char** argv);
84
85   /// inherited from AliHLTComponent: handle cleanup
86   int DoDeinit();
87
88   /// inherited from AliHLTComponent: handle re-configuration event
89   int Reconfigure(const char* cdbEntry, const char* chainId);
90
91   /// inherited from AliHLTComponent, scan one argument and
92   /// its parameters
93   int ScanConfigurationArgument(int argc, const char** argv);
94
95  private:
96   /// Not implemented. Do not allow copying of this object.
97   AliHLTD0Trigger(const AliHLTD0Trigger& );
98   /// Not implemented. Do not allow copying of this object.
99   AliHLTD0Trigger& operator=(const  AliHLTD0Trigger& );
100
101   /// inherited from AliHLTTrigger: calculate the trigger
102   virtual int DoTrigger();
103   
104   void SingleTrackSelect(AliExternalTrackParam*);
105   Int_t RecV0(const TObject* iter);
106   Int_t RecD0();
107
108   /// pt cut for decay, minimum [GeV/c]
109   float fPtMin;                                            //! transient
110   /// Distance between decay tracks [cm] ??
111   float fdca;                                              //! transient
112   /// Inv. mass half width [GeV]
113   float finvMass;                                          //! transient
114   /// Decay angle
115   float fcosThetaStar;                                     //! transient  
116   /// Distance from primary vertex for decay tracks [cm] 
117   float fd0;                                               //! transient
118   /// Product of d0 for the two decay tracks [cm^2]
119   float fd0d0;                                             //! transient
120   /// Pionting angle
121   float fcosPoint;                                         //! transient 
122
123   bool fplothisto;                                         //! transient 
124   bool fUseV0;                                             //! transient 
125
126   Double_t mD0PDG;                                         //! transient
127
128   /// D0 inv. mass plot
129   TH1F *fD0mass;                                           //! transient  
130
131   vector<AliExternalTrackParam*> fPos;                       //! transient
132   vector<AliExternalTrackParam*> fNeg;                       //! transient
133
134   AliHLTD0toKpi *fd0calc;                                   //! transient
135   TObjArray *ftwoTrackArray;                                //! transient
136
137   Int_t fTotalD0;                                           //! transient
138   AliESDVertex *fVertex;                                 //! transient
139   Double_t fField;                                         //!transient
140   
141   /// the default configuration entry for this component
142   static const char* fgkOCDBEntry; //!transient
143
144   ClassDef(AliHLTD0Trigger, 0)
145 };
146 #endif //ALIHLTD0TRIGGER_H