Revision: | 1.5 |
Committed: | Fri Mar 20 17:13:33 2009 UTC (16 years, 1 month ago) by loizides |
Content type: | text/plain |
Branch: | MAIN |
CVS Tags: | Mit_014a, Mit_014, Mit_014pre3, Mit_014pre2, Mit_014pre1, Mit_013d, Mit_013c, Mit_013b, Mit_013a, Mit_013, Mit_013pre1, Mit_012i, Mit_012h, Mit_012g, Mit_012f, Mit_012e, Mit_012d, Mit_012c, Mit_012b, Mit_012a, Mit_012, Mit_011a, Mit_011, Mit_010a, Mit_010, Mit_009c, Mit_009b, Mit_009a, Mit_009, Mit_008 |
Changes since 1.4: | +11 -11 lines |
Log Message: | Cleanup |
# | User | Rev | Content |
---|---|---|---|
1 | bendavid | 1.1 | //-------------------------------------------------------------------------------------------------- |
2 | loizides | 1.5 | // $Id: StableData.h,v 1.4 2008/11/03 16:03:20 bendavid Exp $ |
3 | bendavid | 1.1 | // |
4 | // StableData | ||
5 | // | ||
6 | // Class to store information about stable daughters from a specific decay | ||
7 | // | ||
8 | // Authors: C.Paus, J.Bendavid | ||
9 | //-------------------------------------------------------------------------------------------------- | ||
10 | |||
11 | loizides | 1.2 | #ifndef MITEDM_DATAFORMATS_STABLEDATA_H |
12 | #define MITEDM_DATAFORMATS_STABLEDATA_H | ||
13 | bendavid | 1.1 | |
14 | #include "MitEdm/DataFormats/interface/DaughterData.h" | ||
15 | |||
16 | namespace mitedm | ||
17 | { | ||
18 | class StableData : public DaughterData | ||
19 | { | ||
20 | public: | ||
21 | bendavid | 1.4 | StableData() : p3_(0,0,0), hitsFilled_(false) {} |
22 | loizides | 1.5 | StableData(double px, double py, double pz, BasePartPtr stable) : |
23 | bendavid | 1.1 | DaughterData(stable), |
24 | bendavid | 1.4 | p3_(px,py,pz), |
25 | hitsFilled_(false) | ||
26 | bendavid | 1.1 | {} |
27 | |||
28 | ~StableData() {} | ||
29 | |||
30 | loizides | 1.5 | const reco::HitPattern &Hits() const { return hits_; } |
31 | bool HitsFilled() const { return hitsFilled_; } | ||
32 | void SetHits(const reco::HitPattern &hits) { hits_=hits; } | ||
33 | void SetHitsFilled(bool filled=true) { hitsFilled_=filled; } | ||
34 | const ThreeVector32 &p3() const { return p3_; } | ||
35 | double mass() const { return originalPart_.get()->mass(); } | ||
36 | bendavid | 1.1 | |
37 | protected: | ||
38 | loizides | 1.5 | ThreeVector32 p3_; //vertex position |
39 | reco::HitPattern hits_; //hit pattern | ||
40 | bool hitsFilled_; //=true if hits are filled | ||
41 | bendavid | 1.1 | }; |
42 | } | ||
43 | #endif |