ViewVC Help
View File | Revision Log | Show Annotations | Root Listing
root/cvsroot/UserCode/MitEdm/DataFormats/interface/StableData.h
Revision: 1.6
Committed: Tue Jun 8 20:17:28 2010 UTC (14 years, 10 months ago) by bendavid
Content type: text/plain
Branch: MAIN
CVS Tags: Mit_032, Mit_031, Mit_025c_branch2, Mit_025c_branch1, Mit_030, Mit_029c, Mit_029b, Mit_030_pre1, Mit_029a, Mit_029, Mit_029_pre1, Mit_028a, Mit_025c_branch0, Mit_028, Mit_027a, Mit_027, Mit_026, Mit_025e, Mit_025d, Mit_025c, Mit_025b, Mit_025a, Mit_025, Mit_025pre2, Mit_024b, Mit_025pre1, Mit_024a, Mit_024, Mit_023, Mit_022a, Mit_022, Mit_020d, TMit_020d, Mit_020c, Mit_021, Mit_021pre2, Mit_021pre1, Mit_020b, Mit_020a, Mit_020, Mit_020pre1, Mit_018, Mit_017, Mit_017pre3, Mit_017pre2, Mit_017pre1, V07-05-00, Mit_016, Mit_015b, Mit_015a, Mit_015, Mit_014e, Mit_014d, Mit_014c, Mit_014b, ConvRejection-10-06-09, HEAD
Branch point for: Mit_025c_branch
Changes since 1.5: +7 -3 lines
Log Message:
Add simple tool to do conversion selection and matching

File Contents

# User Rev Content
1 bendavid 1.1 //--------------------------------------------------------------------------------------------------
2 bendavid 1.6 // $Id: StableData.h,v 1.5 2009/03/20 17:13:33 loizides 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.6 StableData() : p3_(0,0,0), hitsFilled_(false), nWrongHits_(0) {}
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 bendavid 1.6 hitsFilled_(false),
26     nWrongHits_(0)
27 bendavid 1.1 {}
28    
29     ~StableData() {}
30    
31 loizides 1.5 const reco::HitPattern &Hits() const { return hits_; }
32     bool HitsFilled() const { return hitsFilled_; }
33     void SetHits(const reco::HitPattern &hits) { hits_=hits; }
34     void SetHitsFilled(bool filled=true) { hitsFilled_=filled; }
35 bendavid 1.6 void SetNWrongHits(uint n) { nWrongHits_ = n; }
36 loizides 1.5 const ThreeVector32 &p3() const { return p3_; }
37     double mass() const { return originalPart_.get()->mass(); }
38 bendavid 1.6 uint nWrongHits() const { return nWrongHits_; }
39 bendavid 1.1
40     protected:
41 loizides 1.5 ThreeVector32 p3_; //vertex position
42     reco::HitPattern hits_; //hit pattern
43     bool hitsFilled_; //=true if hits are filled
44 bendavid 1.6 uint nWrongHits_;
45 bendavid 1.1 };
46     }
47     #endif