ViewVC Help
View File | Revision Log | Show Annotations | Root Listing
root/cvsroot/UserCode/MitAna/DataTree/interface/EvtSelData.h
Revision: 1.3
Committed: Wed Dec 9 12:48:34 2009 UTC (15 years, 4 months ago) by edwenger
Content type: text/plain
Branch: MAIN
CVS Tags: Mit_012e
Changes since 1.2: +9 -6 lines
Log Message:
add more pixel variables.  fix hcal in constructor

File Contents

# User Rev Content
1 loizides 1.1 //--------------------------------------------------------------------------------------------------
2 edwenger 1.3 // $Id: EvtSelData.h,v 1.2 2009/12/08 20:51:10 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.3 fPxbHits(0), fPxHits(0), fClusVtxQual(0), fClusVtxDiff(0) {}
27 loizides 1.1 EvtSelData(Double_t HcalNeg, Double_t HcalPos,
28     Double_t HfNeg, Double_t HfPos, Double_t HfNegTime, Double_t HfPosTime,
29     Double_t CaNeg, Double_t CaPos, Double_t CaNegTime, Double_t CaPosTime,
30     Double_t ZdcNeg, Double_t ZdcPos, Double_t ZdcNegTime, Double_t ZdcPosTime,
31 edwenger 1.3 Int_t PxbHits, Int_t PxHits, Double_t ClusVtxQual, Double_t ClusVtxDiff);
32 loizides 1.1
33     ~EvtSelData() {}
34    
35 loizides 1.2 Double_t HcalNeg() const { return fHcalNeg; }
36     Double_t HcalPos() const { return fHcalPos; }
37 loizides 1.1 Double_t CastorNeg() const { return fCaNeg; }
38     Double_t CastorPos() const { return fCaPos; }
39     Double_t CastorNegTime() const { return fCaNegTime; }
40     Double_t CastorPosTime() const { return fCaPosTime; }
41     Double_t HfNeg() const { return fHfNeg; }
42     Double_t HfPos() const { return fHfPos; }
43     Double_t HfNegTime() const { return fHfNegTime; }
44     Double_t HfPosTime() const { return fHfPosTime; }
45     Int_t NpixBarrel() const { return fPxbHits; }
46 edwenger 1.3 Int_t Npix() const { return fPxHits; }
47 loizides 1.1 Double_t ZdcNeg() const { return fZdcNeg; }
48     Double_t ZdcPos() const { return fZdcPos; }
49     Double_t ZdcNegTime() const { return fZdcNegTime; }
50     Double_t ZdcPosTime() const { return fZdcPosTime; }
51     EObjType ObjType() const { return kEvtSelData; }
52     void Set (Double_t HcalNeg, Double_t HcalPos,
53     Double_t HfNeg, Double_t HfPos, Double_t HfNegTime, Double_t HfPosTime,
54     Double_t CaNeg, Double_t CaPos, Double_t CaNegTime, Double_t CaPosTime,
55     Double_t ZdcNeg, Double_t ZdcPos, Double_t ZdcNegTime, Double_t ZdcPosTime,
56 edwenger 1.3 Int_t PxbHits, Int_t PxHits, Double_t ClusVtxQual, Double_t ClusVtxDiff);
57 loizides 1.1
58     protected:
59     Double_t fHcalNeg; //energy HCAL negative side
60     Double_t fHcalPos; //energy HCAL positive side
61     Double_t fHfNeg; //energy HF negative side
62     Double_t fHfPos; //energy HF positive side
63     Double_t fHfNegTime; //energy weighted HF time on negative side
64     Double_t fHfPosTime; //energy weighted HF time on positive side
65     Double_t fCaNeg; //energy CASTOR negative side
66     Double_t fCaPos; //energy CASTOR positive side
67     Double_t fCaNegTime; //energy weighted CASTOR time on negative side
68     Double_t fCaPosTime; //energy weighted CASTOR time on positive side
69     Double_t fZdcNeg; //energy ZDC negative side
70     Double_t fZdcPos; //energy ZDC positive side
71     Double_t fZdcNegTime; //energy weighted ZDC time on negative side
72     Double_t fZdcPosTime; //energy weighted ZDC time on positive side
73     Int_t fPxbHits; //number of pixel rechits in the three barrel layers
74 edwenger 1.3 Int_t fPxHits; //number of pixel rechits in all barrel and forward layers
75     Double_t fClusVtxQual; //incompatibility of pixel cluster shapes with vertex (ratio)
76     Double_t fClusVtxDiff; //incompatibility of pixel cluster shapes with vertex (diff)
77 loizides 1.1
78 edwenger 1.3 ClassDef(EvtSelData, 2) // Event selection data
79 loizides 1.1 };
80     }
81     #endif