ViewVC Help
View File | Revision Log | Show Annotations | Root Listing
root/cvsroot/UserCode/MitAna/DataTree/interface/EvtSelData.h
Revision: 1.5
Committed: Tue Jan 5 16:39:44 2010 UTC (15 years, 4 months ago) by edwenger
Content type: text/plain
Branch: MAIN
Changes since 1.4: +10 -6 lines
Log Message:
add high-purity track fraction

File Contents

# User Rev Content
1 loizides 1.1 //--------------------------------------------------------------------------------------------------
2 edwenger 1.5 // $Id: EvtSelData.h,v 1.4 2009/12/13 08:48:58 loizides Exp $
3 loizides 1.1 //
4     // EvtSelData
5     //
6     // Class to store event properties on which one may want to select clean events.
7     // This may be needed for early collision data only.
8     //
9     // Authors: C.Loizides
10     //--------------------------------------------------------------------------------------------------
11    
12     #ifndef MITANA_DATATREE_EVENTSELDATA_H
13     #define MITANA_DATATREE_EVENTSELDATA_H
14    
15     #include "MitAna/DataTree/interface/DataBase.h"
16    
17     namespace mithep
18     {
19     class EvtSelData : public DataBase
20     {
21     public:
22     EvtSelData() : fHcalNeg(0), fHcalPos(0),
23     fHfNeg(0), fHfPos(0), fHfNegTime(0), fHfPosTime(0),
24     fCaNeg(0), fCaPos(0), fCaNegTime(0), fCaPosTime(0),
25     fZdcNeg(0), fZdcPos(0), fZdcNegTime(0), fZdcPosTime(0),
26 edwenger 1.5 fPxbHits(0), fPxHits(0), fClusVtxQual(0), fClusVtxDiff(0),
27     fHPTrkFrac(0) {}
28 loizides 1.1 EvtSelData(Double_t HcalNeg, Double_t HcalPos,
29     Double_t HfNeg, Double_t HfPos, Double_t HfNegTime, Double_t HfPosTime,
30     Double_t CaNeg, Double_t CaPos, Double_t CaNegTime, Double_t CaPosTime,
31     Double_t ZdcNeg, Double_t ZdcPos, Double_t ZdcNegTime, Double_t ZdcPosTime,
32 edwenger 1.5 Int_t PxbHits, Int_t PxHits, Double_t ClusVtxQual, Double_t ClusVtxDiff,
33     Double_t HPTrkFrac);
34 loizides 1.1
35     ~EvtSelData() {}
36    
37 loizides 1.2 Double_t HcalNeg() const { return fHcalNeg; }
38     Double_t HcalPos() const { return fHcalPos; }
39 loizides 1.1 Double_t CastorNeg() const { return fCaNeg; }
40     Double_t CastorPos() const { return fCaPos; }
41     Double_t CastorNegTime() const { return fCaNegTime; }
42     Double_t CastorPosTime() const { return fCaPosTime; }
43 loizides 1.4 Double_t ClusVtxQual() const { return fClusVtxQual;}
44     Double_t ClusVtxDiff() const { return fClusVtxDiff;}
45 edwenger 1.5 Double_t HPTrkFrac() const { return fHPTrkFrac; }
46 loizides 1.1 Double_t HfNeg() const { return fHfNeg; }
47     Double_t HfPos() const { return fHfPos; }
48     Double_t HfNegTime() const { return fHfNegTime; }
49     Double_t HfPosTime() const { return fHfPosTime; }
50     Int_t NpixBarrel() const { return fPxbHits; }
51 edwenger 1.3 Int_t Npix() const { return fPxHits; }
52 loizides 1.1 Double_t ZdcNeg() const { return fZdcNeg; }
53     Double_t ZdcPos() const { return fZdcPos; }
54     Double_t ZdcNegTime() const { return fZdcNegTime; }
55     Double_t ZdcPosTime() const { return fZdcPosTime; }
56     EObjType ObjType() const { return kEvtSelData; }
57     void Set (Double_t HcalNeg, Double_t HcalPos,
58     Double_t HfNeg, Double_t HfPos, Double_t HfNegTime, Double_t HfPosTime,
59     Double_t CaNeg, Double_t CaPos, Double_t CaNegTime, Double_t CaPosTime,
60     Double_t ZdcNeg, Double_t ZdcPos, Double_t ZdcNegTime, Double_t ZdcPosTime,
61 edwenger 1.5 Int_t PxbHits, Int_t PxHits, Double_t ClusVtxQual, Double_t ClusVtxDiff,
62     Double_t HPTrkFrac);
63 loizides 1.1
64     protected:
65     Double_t fHcalNeg; //energy HCAL negative side
66     Double_t fHcalPos; //energy HCAL positive side
67     Double_t fHfNeg; //energy HF negative side
68     Double_t fHfPos; //energy HF positive side
69     Double_t fHfNegTime; //energy weighted HF time on negative side
70     Double_t fHfPosTime; //energy weighted HF time on positive side
71     Double_t fCaNeg; //energy CASTOR negative side
72     Double_t fCaPos; //energy CASTOR positive side
73     Double_t fCaNegTime; //energy weighted CASTOR time on negative side
74     Double_t fCaPosTime; //energy weighted CASTOR time on positive side
75     Double_t fZdcNeg; //energy ZDC negative side
76     Double_t fZdcPos; //energy ZDC positive side
77     Double_t fZdcNegTime; //energy weighted ZDC time on negative side
78     Double_t fZdcPosTime; //energy weighted ZDC time on positive side
79     Int_t fPxbHits; //number of pixel rechits in the three barrel layers
80 edwenger 1.3 Int_t fPxHits; //number of pixel rechits in all barrel and forward layers
81     Double_t fClusVtxQual; //incompatibility of pixel cluster shapes with vertex (ratio)
82     Double_t fClusVtxDiff; //incompatibility of pixel cluster shapes with vertex (diff)
83 edwenger 1.5 Double_t fHPTrkFrac; //fraction of high-purity tracks out of all with "loose" cuts
84 loizides 1.1
85 edwenger 1.5 ClassDef(EvtSelData, 3) // Event selection data
86 loizides 1.1 };
87     }
88     #endif