adding missing argument in printf statement
[u/mrichter/AliRoot.git] / HLT / trigger / AliHLTD0Trigger.h
CommitLineData
5f4502cc 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"
9929f8f5 15#include <vector>
629b904b 16#include "AliHLTD0toKpi.h"
9929f8f5 17
5f4502cc 18class TH1F;
9929f8f5 19class TObjArray;
629b904b 20class AliESDVertex;
21class AliExternalTrackParam;
2a743e38 22class AliHLTMCEvent;
5f4502cc 23
24/**
25 * @class AliHLTD0Trigger
26 *
27 * HLT trigger component for D0->Kpi
28 *
29 * <h2>General properties:</h2>
30 *
31 * Component ID: \b D0Trigger <br>
32 * Library: \b libAliHLTTrigger.so <br>
33 * Input Data Types: kAliHLTDataTypeESDObject, kAliHLTDataTypeESDTree
34 * kAliHLTDataTypeTrack <br>
35 * Output Data Types: ::kAliHLTAnyDataType <br>
36 *
37 * <h2>Mandatory arguments:</h2>
38 * <!-- NOTE: ignore the \li. <i> and </i>: it's just doxygen formatting -->
39 *
40 * <h2>Optional arguments:</h2>
41 * <!-- NOTE: ignore the \li. <i> and </i>: it's just doxygen formatting -->
42 *
43 * <h2>Configuration:</h2>
44 * <!-- NOTE: ignore the \li. <i> and </i>: it's just doxygen formatting -->
45 * \li -pt <i> pt cut for decay products </i> <br>
46 * \li -dca <i> dca cut for distance between decay tracks </i> <br>
47 * \li -invmass <i> inv. mass half width of D0 </i> <br>
48 * \li -costhetastar <i> cos of decay angle </i> <br>
49 * \li -d0 <i> Impact parameter for decay products </i> <br>
50 * \li -d0d0 <i> Product of impact parameter for decay products </i> <br>
51 * \li -cospoint <i> pointing angle </i> <br>
252bba71 52 * \li -plothistogram <i> ploting the inv. mass and pt of D0 </i> <br>
15f6cee9 53 * \li -useKF <i> will use partilce KF for vertex finding </i> <br>
5f4502cc 54 *
55 * By default, configuration is loaded from OCDB, can be overridden by
56 * component arguments.
57 *
58 * <h2>Default CDB entries:</h2>
59 * HLT/ConfigHLT/D0Trigger: TObjString storing the arguments
60 *
61 * <h2>Performance:</h2>
62 *
63 *
64 * <h2>Memory consumption:</h2>
65 *
66 *
67 * <h2>Output size:</h2>
68 *
69 *
70 * \ingroup alihlt_trigger_components
71 */
72class AliHLTD0Trigger : public AliHLTTrigger
73{
74 public:
75 AliHLTD0Trigger();
76 ~AliHLTD0Trigger();
77
78 /// inherited from AliHLTTrigger: name of this trigger
79 virtual const char* GetTriggerName() const;
80 /// inherited from AliHLTComponent: create an instance
81 virtual AliHLTComponent* Spawn();
10d746a6 82
83 /// inherited from AliHLTComponent: return OCDB requirements
84 void GetOCDBObjectDescription( TMap* const targetMap);
5f4502cc 85
86 protected:
87 /// inherited from AliHLTComponent: handle the initialization
88 int DoInit(int argc, const char** argv);
89
90 /// inherited from AliHLTComponent: handle cleanup
91 int DoDeinit();
92
93 /// inherited from AliHLTComponent: handle re-configuration event
94 int Reconfigure(const char* cdbEntry, const char* chainId);
95
96 /// inherited from AliHLTComponent, scan one argument and
97 /// its parameters
98 int ScanConfigurationArgument(int argc, const char** argv);
99
100 private:
06d76128 101 /// Not implemented. Do not allow copying of this object.
102 AliHLTD0Trigger(const AliHLTD0Trigger& );
103 /// Not implemented. Do not allow copying of this object.
104 AliHLTD0Trigger& operator=(const AliHLTD0Trigger& );
5f4502cc 105
106 /// inherited from AliHLTTrigger: calculate the trigger
107 virtual int DoTrigger();
629b904b 108
109 void SingleTrackSelect(AliExternalTrackParam*);
9929f8f5 110 Int_t RecV0(const TObject* iter);
2a743e38 111 void RecD0(Int_t&,Int_t&);
112 bool CheckTrackMC(AliExternalTrackParam* pt, AliExternalTrackParam* pn);
9929f8f5 113
5f4502cc 114 /// pt cut for decay, minimum [GeV/c]
115 float fPtMin; //! transient
116 /// Distance between decay tracks [cm] ??
117 float fdca; //! transient
118 /// Inv. mass half width [GeV]
119 float finvMass; //! transient
120 /// Decay angle
121 float fcosThetaStar; //! transient
122 /// Distance from primary vertex for decay tracks [cm]
123 float fd0; //! transient
124 /// Product of d0 for the two decay tracks [cm^2]
125 float fd0d0; //! transient
126 /// Pionting angle
127 float fcosPoint; //! transient
128
129 bool fplothisto; //! transient
9929f8f5 130 bool fUseV0; //! transient
131
132 Double_t mD0PDG; //! transient
5f4502cc 133
134 /// D0 inv. mass plot
9929f8f5 135 TH1F *fD0mass; //! transient
252bba71 136 TH1F *fD0pt; //! transient
9929f8f5 137
629b904b 138 vector<AliExternalTrackParam*> fPos; //! transient
139 vector<AliExternalTrackParam*> fNeg; //! transient
9929f8f5 140
629b904b 141 AliHLTD0toKpi *fd0calc; //! transient
142 TObjArray *ftwoTrackArray; //! transient
5f4502cc 143
629b904b 144 Int_t fTotalD0; //! transient
2a743e38 145 Int_t fTotalD0true; //! transient
146 AliESDVertex *fVertex; //! transient
147 Double_t fField; //!transient
629b904b 148
2a743e38 149 AliHLTMCEvent* fEvent; //!transient
150
15f6cee9 151 bool fuseKF; //!transient
152
5f4502cc 153 /// the default configuration entry for this component
154 static const char* fgkOCDBEntry; //!transient
155
156 ClassDef(AliHLTD0Trigger, 0)
157};
158#endif //ALIHLTD0TRIGGER_H