test
CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
PCrossingFrame.h
Go to the documentation of this file.
1 #ifndef PCROSSING_FRAME_H
2 #define PCROSSING_FRAME_H
3 
15 
16 template <class T>
17 class PCrossingFrame
18 {
19 
20  public:
21 
25 
27 
28  // getters for data members of PCrossingFrame
29  edm::EventID getEventID() const {return Pid_;}
30  std::vector<const T *> getPileups() const {return PCFpileups_;}
31  int getBunchSpace() const {return PbunchSpace_;}
32  unsigned int getMaxNbSources() const {return PmaxNbSources_; }
33  std::string getSubDet() const { return PCFsubdet_;}
34  unsigned int getPileupFileNr() const {return PCFpileupFileNr_;}
36  std::vector<unsigned int> getPileupOffsetsBcr() const {return PCFpileupOffsetsBcr_;}
37  std::vector< std::vector<unsigned int> > getPileupOffsetsSource() const {return PCFpileupOffsetsSource_;} //one per source
38  std::pair<int,int> getBunchRange() const {return std::pair<int,int>(firstPCrossing_,lastPCrossing_);}
39 
40 
41  private:
42  unsigned int PmaxNbSources_;
47  std::vector<const T * > PCFpileups_;
48  std::vector<const T * > PCFsignals_;
50  unsigned int PCFpileupFileNr_;
52  std::vector<unsigned int> PCFpileupOffsetsBcr_;
53  std::vector< std::vector<unsigned int> > PCFpileupOffsetsSource_;
54 };
55 
56 
57 template <class T>
59 {
60  //get data members from CrossingFrame
61  PmaxNbSources_= cf.getMaxNbSources();
62  PbunchSpace_ = cf.getBunchSpace();
63  Pid_ = cf.getEventID();
64  firstPCrossing_ = cf.getBunchRange().first;
65  lastPCrossing_ = cf.getBunchRange().second;
66  PCFpileups_ = cf.getPileups();
67  PCFsignals_ = cf.getSignal();
68  PCFsubdet_ = cf.getSubDet();
69  PCFpileupFileNr_ = cf.getPileupFileNr();
70  PCFidFirstPileup_ = cf.getIdFirstPileup();
71  PCFpileupOffsetsBcr_ = cf.getPileupOffsetsBcr();
72  PCFpileupOffsetsSource_ = cf.getPileupOffsetsSource();
73 }
74 
75 #endif
unsigned int PCFpileupFileNr_
std::pair< int, int > getBunchRange() const
Definition: CrossingFrame.h:88
std::vector< std::vector< unsigned int > > PCFpileupOffsetsSource_
edm::EventID PCFidFirstPileup_
std::vector< const T * > PCFsignals_
unsigned int getMaxNbSources() const
Definition: CrossingFrame.h:90
int getBunchSpace() const
unsigned int getPileupFileNr() const
std::vector< std::vector< unsigned int > > getPileupOffsetsSource() const
Definition: CrossingFrame.h:95
unsigned int PmaxNbSources_
std::string getSubDet() const
Definition: CrossingFrame.h:91
edm::EventID getEventID() const
Definition: CrossingFrame.h:87
edm::EventID getIdFirstPileup() const
edm::EventID getEventID() const
std::vector< const T * > getSignal() const
Definition: CrossingFrame.h:97
std::vector< const T * > getPileups() const
Definition: CrossingFrame.h:96
edm::EventID Pid_
unsigned int getPileupFileNr() const
Definition: CrossingFrame.h:92
PCrossingFrame(const PCrossingFrame< T > &pcf)
std::string getSubDet() const
unsigned int getMaxNbSources() const
std::pair< int, int > getBunchRange() const
std::string PCFsubdet_
std::vector< unsigned int > getPileupOffsetsBcr() const
std::vector< const T * > PCFpileups_
std::vector< unsigned int > PCFpileupOffsetsBcr_
std::vector< const T * > getPileups() const
std::vector< unsigned int > getPileupOffsetsBcr() const
Definition: CrossingFrame.h:94
edm::EventID getIdFirstPileup() const
Definition: CrossingFrame.h:93
int getBunchSpace() const
Definition: CrossingFrame.h:89
std::vector< std::vector< unsigned int > > getPileupOffsetsSource() const