CMS 3D CMS Logo

List of all members | Public Member Functions | Private Attributes
PCrossingFrame< T > Class Template Reference

#include <CrossingFrame.h>

Public Member Functions

std::pair< int, int > getBunchRange () const
 
int getBunchSpace () const
 
edm::EventID getEventID () const
 
edm::EventID getIdFirstPileup () const
 
unsigned int getMaxNbSources () const
 
unsigned int getPileupFileNr () const
 
std::vector< unsigned int > getPileupOffsetsBcr () const
 
std::vector< std::vector< unsigned int > > getPileupOffsetsSource () const
 
std::vector< const T * > getPileups () const
 
std::string getSubDet () const
 
 PCrossingFrame ()
 
 PCrossingFrame (const CrossingFrame< T > &cf)
 
 PCrossingFrame (const PCrossingFrame< T > &pcf)
 
 ~PCrossingFrame ()
 

Private Attributes

int firstPCrossing_
 
int lastPCrossing_
 
int PbunchSpace_
 
edm::EventID PCFidFirstPileup_
 
unsigned int PCFpileupFileNr_
 
std::vector< unsigned int > PCFpileupOffsetsBcr_
 
std::vector< std::vector< unsigned int > > PCFpileupOffsetsSource_
 
std::vector< const T * > PCFpileups_
 
std::vector< const T * > PCFsignals_
 
std::string PCFsubdet_
 
edm::EventID Pid_
 
unsigned int PmaxNbSources_
 

Detailed Description

template<class T>
class PCrossingFrame< T >

PCrossingFrame allow the write the transient CrossingFrame

Author
EmiliaBecheva, Claude Charlot, LLR Palaiseau
Version
1st Version April 2009

Definition at line 28 of file CrossingFrame.h.

Constructor & Destructor Documentation

template<class T>
PCrossingFrame< T >::PCrossingFrame ( )
inline

Definition at line 22 of file PCrossingFrame.h.

Referenced by PCrossingFrame< PCaloHit >::PCrossingFrame().

22 {}
template<class T>
PCrossingFrame< T >::PCrossingFrame ( const CrossingFrame< T > &  cf)

Definition at line 58 of file PCrossingFrame.h.

References PCrossingFrame< T >::firstPCrossing_, CrossingFrame< T >::getBunchRange(), CrossingFrame< T >::getBunchSpace(), CrossingFrame< T >::getEventID(), CrossingFrame< T >::getIdFirstPileup(), CrossingFrame< T >::getMaxNbSources(), CrossingFrame< T >::getPileupFileNr(), CrossingFrame< T >::getPileupOffsetsBcr(), CrossingFrame< T >::getPileupOffsetsSource(), CrossingFrame< T >::getPileups(), CrossingFrame< T >::getSignal(), CrossingFrame< T >::getSubDet(), PCrossingFrame< T >::lastPCrossing_, PCrossingFrame< T >::PbunchSpace_, PCrossingFrame< T >::PCFidFirstPileup_, PCrossingFrame< T >::PCFpileupFileNr_, PCrossingFrame< T >::PCFpileupOffsetsBcr_, PCrossingFrame< T >::PCFpileupOffsetsSource_, PCrossingFrame< T >::PCFpileups_, PCrossingFrame< T >::PCFsignals_, PCrossingFrame< T >::PCFsubdet_, PCrossingFrame< T >::Pid_, and PCrossingFrame< T >::PmaxNbSources_.

59 {
60  //get data members from CrossingFrame
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();
73 }
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
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
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
std::string PCFsubdet_
std::vector< const T * > PCFpileups_
std::vector< unsigned int > PCFpileupOffsetsBcr_
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
template<class T>
PCrossingFrame< T >::PCrossingFrame ( const PCrossingFrame< T > &  pcf)
inline

Definition at line 24 of file PCrossingFrame.h.

24 {};
template<class T>
PCrossingFrame< T >::~PCrossingFrame ( )
inline

Definition at line 26 of file PCrossingFrame.h.

26 {;}

Member Function Documentation

template<class T>
std::pair<int,int> PCrossingFrame< T >::getBunchRange ( ) const
inline

Definition at line 38 of file PCrossingFrame.h.

Referenced by edm::MixingWorker< T >::copyPCrossingFrame().

38 {return std::pair<int,int>(firstPCrossing_,lastPCrossing_);}
template<class T>
int PCrossingFrame< T >::getBunchSpace ( ) const
inline

Definition at line 31 of file PCrossingFrame.h.

Referenced by edm::MixingWorker< T >::copyPCrossingFrame().

31 {return PbunchSpace_;}
template<class T>
edm::EventID PCrossingFrame< T >::getEventID ( ) const
inline

Definition at line 29 of file PCrossingFrame.h.

29 {return Pid_;}
edm::EventID Pid_
template<class T>
edm::EventID PCrossingFrame< T >::getIdFirstPileup ( ) const
inline

Definition at line 35 of file PCrossingFrame.h.

Referenced by edm::MixingWorker< T >::copyPCrossingFrame().

35 {return PCFidFirstPileup_;}
edm::EventID PCFidFirstPileup_
template<class T>
unsigned int PCrossingFrame< T >::getMaxNbSources ( ) const
inline

Definition at line 32 of file PCrossingFrame.h.

Referenced by edm::MixingWorker< T >::copyPCrossingFrame().

32 {return PmaxNbSources_; }
unsigned int PmaxNbSources_
template<class T>
unsigned int PCrossingFrame< T >::getPileupFileNr ( ) const
inline

Definition at line 34 of file PCrossingFrame.h.

Referenced by edm::MixingWorker< T >::copyPCrossingFrame().

34 {return PCFpileupFileNr_;}
unsigned int PCFpileupFileNr_
template<class T>
std::vector<unsigned int> PCrossingFrame< T >::getPileupOffsetsBcr ( ) const
inline

Definition at line 36 of file PCrossingFrame.h.

Referenced by edm::MixingWorker< T >::copyPCrossingFrame().

36 {return PCFpileupOffsetsBcr_;}
std::vector< unsigned int > PCFpileupOffsetsBcr_
template<class T>
std::vector< std::vector<unsigned int> > PCrossingFrame< T >::getPileupOffsetsSource ( ) const
inline

Definition at line 37 of file PCrossingFrame.h.

Referenced by edm::MixingWorker< T >::copyPCrossingFrame().

37 {return PCFpileupOffsetsSource_;} //one per source
std::vector< std::vector< unsigned int > > PCFpileupOffsetsSource_
template<class T>
std::vector<const T *> PCrossingFrame< T >::getPileups ( ) const
inline

Definition at line 30 of file PCrossingFrame.h.

Referenced by edm::MixingWorker< T >::copyPCrossingFrame().

30 {return PCFpileups_;}
std::vector< const T * > PCFpileups_
template<class T>
std::string PCrossingFrame< T >::getSubDet ( ) const
inline

Definition at line 33 of file PCrossingFrame.h.

Referenced by edm::MixingWorker< T >::copyPCrossingFrame().

33 { return PCFsubdet_;}
std::string PCFsubdet_

Member Data Documentation

template<class T>
int PCrossingFrame< T >::firstPCrossing_
private
template<class T>
int PCrossingFrame< T >::lastPCrossing_
private
template<class T>
int PCrossingFrame< T >::PbunchSpace_
private
template<class T>
edm::EventID PCrossingFrame< T >::PCFidFirstPileup_
private
template<class T>
unsigned int PCrossingFrame< T >::PCFpileupFileNr_
private
template<class T>
std::vector<unsigned int> PCrossingFrame< T >::PCFpileupOffsetsBcr_
private
template<class T>
std::vector< std::vector<unsigned int> > PCrossingFrame< T >::PCFpileupOffsetsSource_
private
template<class T>
std::vector<const T * > PCrossingFrame< T >::PCFpileups_
private
template<class T>
std::vector<const T * > PCrossingFrame< T >::PCFsignals_
private

Definition at line 48 of file PCrossingFrame.h.

Referenced by PCrossingFrame< T >::PCrossingFrame().

template<class T>
std::string PCrossingFrame< T >::PCFsubdet_
private
template<class T>
edm::EventID PCrossingFrame< T >::Pid_
private
template<class T>
unsigned int PCrossingFrame< T >::PmaxNbSources_
private