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
 
const std::vector< unsigned int > & getPileupOffsetsBcr () const
 
const std::vector< std::vector< unsigned int > > & getPileupOffsetsSource () const
 
const std::vector< T > & getPileupRefs () const
 
std::vector< const T * > getPileups () const
 
const std::vector< T > & getSignals () const
 
std::string getSubDet () const
 
 PCrossingFrame ()
 
 PCrossingFrame (const CrossingFrame< T > &cf)
 
void setAllExceptSignalFrom (const PCrossingFrame< T > &cf)
 
 ~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< TPCFpileups_
 
std::vector< TPCFsignals_
 
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 27 of file CrossingFrame.h.

Constructor & Destructor Documentation

◆ PCrossingFrame() [1/2]

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

Definition at line 19 of file PCrossingFrame.h.

19 {}

◆ PCrossingFrame() [2/2]

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

Definition at line 64 of file PCrossingFrame.h.

64  {
65  //get data members from CrossingFrame
68  Pid_ = cf.getEventID();
69  firstPCrossing_ = cf.getBunchRange().first;
70  lastPCrossing_ = cf.getBunchRange().second;
71 
72  const auto& pileups = cf.getPileups();
73  PCFpileups_.reserve(pileups.size());
74  for (const auto& ptr : pileups) {
75  PCFpileups_.emplace_back(*ptr);
76  }
77  const auto& signal = cf.getSignal();
78  PCFsignals_.reserve(signal.size());
79  for (const auto& ptr : signal) {
80  PCFsignals_.emplace_back(*ptr);
81  }
82 
83  PCFsubdet_ = cf.getSubDet();
88 }

References 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(), and pileupDistInMC::pileups.

◆ ~PCrossingFrame()

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

Definition at line 22 of file PCrossingFrame.h.

22 { ; }

Member Function Documentation

◆ getBunchRange()

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

◆ getBunchSpace()

template<class T>
int PCrossingFrame< T >::getBunchSpace ( ) const
inline

◆ getEventID()

template<class T>
edm::EventID PCrossingFrame< T >::getEventID ( ) const
inline

Definition at line 27 of file PCrossingFrame.h.

27 { return Pid_; }

References PCrossingFrame< T >::Pid_.

◆ getIdFirstPileup()

template<class T>
edm::EventID PCrossingFrame< T >::getIdFirstPileup ( ) const
inline

◆ getMaxNbSources()

template<class T>
unsigned int PCrossingFrame< T >::getMaxNbSources ( ) const
inline

◆ getPileupFileNr()

template<class T>
unsigned int PCrossingFrame< T >::getPileupFileNr ( ) const
inline

◆ getPileupOffsetsBcr()

template<class T>
const std::vector<unsigned int>& PCrossingFrame< T >::getPileupOffsetsBcr ( ) const
inline

◆ getPileupOffsetsSource()

template<class T>
const std::vector<std::vector<unsigned int> >& PCrossingFrame< T >::getPileupOffsetsSource ( ) const
inline

◆ getPileupRefs()

template<class T>
const std::vector<T>& PCrossingFrame< T >::getPileupRefs ( ) const
inline

Definition at line 29 of file PCrossingFrame.h.

29 { return PCFpileups_; }

References PCrossingFrame< T >::PCFpileups_.

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

◆ getPileups()

template<class T>
std::vector<const T*> PCrossingFrame< T >::getPileups ( ) const
inline

Definition at line 30 of file PCrossingFrame.h.

30  {
31  std::vector<const T*> ret;
32  ret.reserve(PCFpileups_.size());
33  for (const auto& p : PCFpileups_)
34  ret.emplace_back(&p);
35  return ret;
36  }

References AlCaHLTBitMon_ParallelJobs::p, PCrossingFrame< T >::PCFpileups_, and runTheMatrix::ret.

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

◆ getSignals()

template<class T>
const std::vector<T>& PCrossingFrame< T >::getSignals ( ) const
inline

Definition at line 28 of file PCrossingFrame.h.

28 { return PCFsignals_; }

References PCrossingFrame< T >::PCFsignals_.

◆ getSubDet()

template<class T>
std::string PCrossingFrame< T >::getSubDet ( ) const
inline

◆ setAllExceptSignalFrom()

template<typename T >
void PCrossingFrame< T >::setAllExceptSignalFrom ( const PCrossingFrame< T > &  cf)

Member Data Documentation

◆ firstPCrossing_

template<class T>
int PCrossingFrame< T >::firstPCrossing_
private

Definition at line 52 of file PCrossingFrame.h.

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

◆ lastPCrossing_

template<class T>
int PCrossingFrame< T >::lastPCrossing_
private

Definition at line 53 of file PCrossingFrame.h.

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

◆ PbunchSpace_

template<class T>
int PCrossingFrame< T >::PbunchSpace_
private

Definition at line 50 of file PCrossingFrame.h.

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

◆ PCFidFirstPileup_

template<class T>
edm::EventID PCrossingFrame< T >::PCFidFirstPileup_
private

Definition at line 58 of file PCrossingFrame.h.

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

◆ PCFpileupFileNr_

template<class T>
unsigned int PCrossingFrame< T >::PCFpileupFileNr_
private

Definition at line 57 of file PCrossingFrame.h.

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

◆ PCFpileupOffsetsBcr_

template<class T>
std::vector<unsigned int> PCrossingFrame< T >::PCFpileupOffsetsBcr_
private

Definition at line 59 of file PCrossingFrame.h.

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

◆ PCFpileupOffsetsSource_

template<class T>
std::vector<std::vector<unsigned int> > PCrossingFrame< T >::PCFpileupOffsetsSource_
private

Definition at line 60 of file PCrossingFrame.h.

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

◆ PCFpileups_

template<class T>
std::vector<T> PCrossingFrame< T >::PCFpileups_
private

◆ PCFsignals_

template<class T>
std::vector<T> PCrossingFrame< T >::PCFsignals_
private

Definition at line 55 of file PCrossingFrame.h.

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

◆ PCFsubdet_

template<class T>
std::string PCrossingFrame< T >::PCFsubdet_
private

Definition at line 56 of file PCrossingFrame.h.

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

◆ Pid_

template<class T>
edm::EventID PCrossingFrame< T >::Pid_
private

Definition at line 51 of file PCrossingFrame.h.

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

◆ PmaxNbSources_

template<class T>
unsigned int PCrossingFrame< T >::PmaxNbSources_
private

Definition at line 49 of file PCrossingFrame.h.

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

runTheMatrix.ret
ret
prodAgent to be discontinued
Definition: runTheMatrix.py:543
CrossingFrame::getPileups
const std::vector< const T * > & getPileups() const
Definition: CrossingFrame.h:89
PCrossingFrame::getBunchSpace
int getBunchSpace() const
Definition: PCrossingFrame.h:37
CrossingFrame::getSubDet
std::string getSubDet() const
Definition: CrossingFrame.h:82
CrossingFrame::getPileupFileNr
unsigned int getPileupFileNr() const
Definition: CrossingFrame.h:83
PCrossingFrame::lastPCrossing_
int lastPCrossing_
Definition: PCrossingFrame.h:53
PCrossingFrame::PCFpileupOffsetsSource_
std::vector< std::vector< unsigned int > > PCFpileupOffsetsSource_
Definition: PCrossingFrame.h:60
PCrossingFrame::getMaxNbSources
unsigned int getMaxNbSources() const
Definition: PCrossingFrame.h:38
PCrossingFrame::getPileupRefs
const std::vector< T > & getPileupRefs() const
Definition: PCrossingFrame.h:29
PCrossingFrame::PmaxNbSources_
unsigned int PmaxNbSources_
Definition: PCrossingFrame.h:49
PCrossingFrame::getPileupFileNr
unsigned int getPileupFileNr() const
Definition: PCrossingFrame.h:40
PCrossingFrame::getBunchRange
std::pair< int, int > getBunchRange() const
Definition: PCrossingFrame.h:46
CrossingFrame::getEventID
edm::EventID getEventID() const
Definition: CrossingFrame.h:78
PCrossingFrame::getPileupOffsetsBcr
const std::vector< unsigned int > & getPileupOffsetsBcr() const
Definition: PCrossingFrame.h:42
CrossingFrame::getPileupOffsetsBcr
const std::vector< unsigned int > & getPileupOffsetsBcr() const
Definition: CrossingFrame.h:85
PCrossingFrame::PCFpileupOffsetsBcr_
std::vector< unsigned int > PCFpileupOffsetsBcr_
Definition: PCrossingFrame.h:59
CrossingFrame::getBunchSpace
int getBunchSpace() const
Definition: CrossingFrame.h:80
CrossingFrame::getSignal
const std::vector< const T * > & getSignal() const
Definition: CrossingFrame.h:90
AlCaHLTBitMon_ParallelJobs.p
def p
Definition: AlCaHLTBitMon_ParallelJobs.py:153
CrossingFrame::getMaxNbSources
unsigned int getMaxNbSources() const
Definition: CrossingFrame.h:81
PCrossingFrame::PCFpileupFileNr_
unsigned int PCFpileupFileNr_
Definition: PCrossingFrame.h:57
PCrossingFrame::firstPCrossing_
int firstPCrossing_
Definition: PCrossingFrame.h:52
PCrossingFrame::getSubDet
std::string getSubDet() const
Definition: PCrossingFrame.h:39
PCrossingFrame::PCFsignals_
std::vector< T > PCFsignals_
Definition: PCrossingFrame.h:55
PCrossingFrame::Pid_
edm::EventID Pid_
Definition: PCrossingFrame.h:51
PCrossingFrame::PCFsubdet_
std::string PCFsubdet_
Definition: PCrossingFrame.h:56
PCrossingFrame::getIdFirstPileup
edm::EventID getIdFirstPileup() const
Definition: PCrossingFrame.h:41
PCrossingFrame::PbunchSpace_
int PbunchSpace_
Definition: PCrossingFrame.h:50
CrossingFrame::getBunchRange
std::pair< int, int > getBunchRange() const
Definition: CrossingFrame.h:79
pileupDistInMC.pileups
pileups
Definition: pileupDistInMC.py:58
CrossingFrame::getIdFirstPileup
edm::EventID getIdFirstPileup() const
Definition: CrossingFrame.h:84
PCrossingFrame::PCFpileups_
std::vector< T > PCFpileups_
Definition: PCrossingFrame.h:54
PCrossingFrame::PCFidFirstPileup_
edm::EventID PCFidFirstPileup_
Definition: PCrossingFrame.h:58
PCrossingFrame::getPileupOffsetsSource
const std::vector< std::vector< unsigned int > > & getPileupOffsetsSource() const
Definition: PCrossingFrame.h:43
CrossingFrame::getPileupOffsetsSource
const std::vector< std::vector< unsigned int > > & getPileupOffsetsSource() const
Definition: CrossingFrame.h:86