#include <EventHeader.h>
Public Member Functions | |
EventHeader (const int nElectrons, const int nIsolatedMuons, const int nNonIsolatedMuons, const int nPhotons, const int nJets, const int nBJets, const int nCJets, const int nTauJets, const double jetCircularity, const double eventCircularity, const double thrust, const double oblateness, const HepLorentzVector pMiss, const double sumET, const HepLorentzVector pEscaped, const MCweightContainerCollection mcWeightContainers) | |
EventHeader () | |
virtual | ~EventHeader () |
int | nElectrons () const |
int | nIsolatedMuons () const |
int | nMuons () const |
int | nNonIsolatedMuons () const |
int | nPhotons () const |
int | nJets () const |
int | nBJets () const |
int | nCJets () const |
int | nTauJets () const |
double | jetCircularity () const |
double | eventCircularity () const |
double | thrust () const |
double | oblateness () const |
HepLorentzVector | pMiss () const |
double | sumET () const |
HepLorentzVector | pEscaped () const |
MCweightContainer | firstFewWeights (int n) const |
virtual const CLID & | clID () const |
Static Public Member Functions | |
static const CLID & | classID () |
Private Attributes | |
int | m_nElectrons |
int | m_nIsolatedMuons |
int | m_nNonIsolatedMuons |
int | m_nPhotons |
int | m_nJets |
int | m_nBJets |
int | m_nCJets |
int | m_nTauJets |
double | m_jetCircularity |
double | m_eventCircularity |
double | m_thrust |
double | m_oblateness |
HepLorentzVector | m_pMiss |
double | m_sumET |
HepLorentzVector | m_pEscaped |
MCweightContainerCollection | m_mcWeightContainers |
It also summarises the number of various particles found in the event, for rapid event selection in user analysis code.
Definition at line 67 of file EventHeader.h.
Atlfast::EventHeader::EventHeader | ( | const int | nElectrons, | |
const int | nIsolatedMuons, | |||
const int | nNonIsolatedMuons, | |||
const int | nPhotons, | |||
const int | nJets, | |||
const int | nBJets, | |||
const int | nCJets, | |||
const int | nTauJets, | |||
const double | jetCircularity, | |||
const double | eventCircularity, | |||
const double | thrust, | |||
const double | oblateness, | |||
const HepLorentzVector | pMiss, | |||
const double | sumET, | |||
const HepLorentzVector | pEscaped, | |||
const MCweightContainerCollection | mcWeightContainers | |||
) | [inline] |
Constructor
Definition at line 75 of file EventHeader.h.
00091 : 00092 DataObject(), 00093 m_nElectrons(nElectrons), 00094 m_nIsolatedMuons(nIsolatedMuons), 00095 m_nNonIsolatedMuons(nNonIsolatedMuons), 00096 m_nPhotons(nPhotons), 00097 m_nJets(nJets), 00098 m_nBJets(nBJets), 00099 m_nCJets(nCJets), 00100 m_nTauJets(nTauJets), 00101 m_jetCircularity(jetCircularity), 00102 m_eventCircularity(eventCircularity), 00103 m_thrust(thrust), 00104 m_oblateness(oblateness), 00105 m_pMiss(pMiss), 00106 m_sumET(sumET), 00107 m_pEscaped(pEscaped), 00108 m_mcWeightContainers(mcWeightContainers) 00109 { };
Atlfast::EventHeader::EventHeader | ( | ) | [inline] |
Default Constructor required by Athena
Definition at line 112 of file EventHeader.h.
00112 : 00113 DataObject(), 00114 m_nElectrons(0), 00115 m_nIsolatedMuons(0), 00116 m_nNonIsolatedMuons(0), 00117 m_nPhotons(0), 00118 m_nJets(0), 00119 m_nBJets(0), 00120 m_nCJets(0), 00121 m_nTauJets(0), 00122 m_jetCircularity(0.0), 00123 m_eventCircularity(0.0), 00124 m_thrust(0.0), 00125 m_oblateness(0.0), 00126 m_pMiss(0.0,0.0,0.0,0.0), 00127 m_sumET(0.), 00128 m_pEscaped(0.0,0.0,0.0,0.0), 00129 m_mcWeightContainers(MCweightContainerCollection()){};
virtual Atlfast::EventHeader::~EventHeader | ( | ) | [inline, virtual] |
int Atlfast::EventHeader::nElectrons | ( | ) | const [inline] |
int Atlfast::EventHeader::nIsolatedMuons | ( | ) | const [inline] |
int Atlfast::EventHeader::nMuons | ( | ) | const [inline] |
int Atlfast::EventHeader::nNonIsolatedMuons | ( | ) | const [inline] |
int Atlfast::EventHeader::nPhotons | ( | ) | const [inline] |
int Atlfast::EventHeader::nJets | ( | ) | const [inline] |
int Atlfast::EventHeader::nBJets | ( | ) | const [inline] |
int Atlfast::EventHeader::nCJets | ( | ) | const [inline] |
int Atlfast::EventHeader::nTauJets | ( | ) | const [inline] |
double Atlfast::EventHeader::jetCircularity | ( | ) | const [inline] |
double Atlfast::EventHeader::eventCircularity | ( | ) | const [inline] |
double Atlfast::EventHeader::thrust | ( | ) | const [inline] |
double Atlfast::EventHeader::oblateness | ( | ) | const [inline] |
HepLorentzVector Atlfast::EventHeader::pMiss | ( | ) | const [inline] |
double Atlfast::EventHeader::sumET | ( | ) | const [inline] |
HepLorentzVector Atlfast::EventHeader::pEscaped | ( | ) | const [inline] |
MCweightContainer Atlfast::EventHeader::firstFewWeights | ( | int | n | ) | const |
Definition at line 39 of file EventHeader.cxx.
00039 { 00040 00041 assert(n>=0); 00042 00043 MCweightContainer weights(n, 0.); 00044 00045 if(!m_mcWeightContainers.empty()) { 00046 00047 MCweightContainer firstContainer = m_mcWeightContainers[0]; 00048 00049 00050 int nWeights = firstContainer.size(); 00051 if(nWeights>=n){ 00052 std::copy( 00053 firstContainer.begin(), 00054 firstContainer.begin()+n, 00055 weights.begin() 00056 ); 00057 }else{ 00058 std::copy( 00059 firstContainer.begin(), 00060 firstContainer.end(), 00061 weights.begin() 00062 ); 00063 00064 00065 } 00066 } 00067 00068 return weights; 00069 }
static const CLID& Atlfast::EventHeader::classID | ( | ) | [inline, static] |
virtual const CLID& Atlfast::EventHeader::clID | ( | ) | const [inline, virtual] |
int Atlfast::EventHeader::m_nElectrons [private] |
Definition at line 173 of file EventHeader.h.
int Atlfast::EventHeader::m_nIsolatedMuons [private] |
Definition at line 174 of file EventHeader.h.
int Atlfast::EventHeader::m_nNonIsolatedMuons [private] |
Definition at line 175 of file EventHeader.h.
int Atlfast::EventHeader::m_nPhotons [private] |
Definition at line 176 of file EventHeader.h.
int Atlfast::EventHeader::m_nJets [private] |
Definition at line 177 of file EventHeader.h.
int Atlfast::EventHeader::m_nBJets [private] |
Definition at line 178 of file EventHeader.h.
int Atlfast::EventHeader::m_nCJets [private] |
Definition at line 179 of file EventHeader.h.
int Atlfast::EventHeader::m_nTauJets [private] |
Definition at line 180 of file EventHeader.h.
double Atlfast::EventHeader::m_jetCircularity [private] |
Definition at line 181 of file EventHeader.h.
double Atlfast::EventHeader::m_eventCircularity [private] |
Definition at line 182 of file EventHeader.h.
double Atlfast::EventHeader::m_thrust [private] |
Definition at line 183 of file EventHeader.h.
double Atlfast::EventHeader::m_oblateness [private] |
Definition at line 184 of file EventHeader.h.
HepLorentzVector Atlfast::EventHeader::m_pMiss [private] |
Definition at line 185 of file EventHeader.h.
double Atlfast::EventHeader::m_sumET [private] |
Definition at line 186 of file EventHeader.h.
HepLorentzVector Atlfast::EventHeader::m_pEscaped [private] |
Definition at line 187 of file EventHeader.h.
Definition at line 188 of file EventHeader.h.