![Logo](../../ATLAS-Logo-Square-Blue-RGB.png) |
ATLAS Offline Software
|
Go to the documentation of this file.
21 m_classif(
"MCTruthClassifier/SUSYGenFilt_MCTruthClassifier")
24 declareInterface<DerivationFramework::IAugmentationTool>(
this);
45 return StatusCode::SUCCESS;
87 return StatusCode::FAILURE;
93 return StatusCode::FAILURE;
96 float genFiltHT(0.), genFiltMET(0.);
99 ATH_MSG_DEBUG(
"Computed generator filter quantities: HT " << genFiltHT/1
e3 <<
", MET " << genFiltMET/1
e3 );
101 dec_genFiltHT(*eventInfo) = genFiltHT;
102 dec_genFiltMET(*eventInfo) = genFiltMET;
104 return StatusCode::SUCCESS;
112 return StatusCode::FAILURE;
117 for (
const auto tj : *truthjets) {
120 <<
", eta " << tj->eta()
121 <<
", phi " << tj->phi()
122 <<
", nconst = " << tj->numConstituents());
123 genFiltHT += tj->pt();
127 float MEx(0.), MEy(0.);
128 for (
const auto tp : *tpc){
129 int pdgid =
tp->pdgId();
137 <<
", eta " <<
tp->eta()
138 <<
", phi " <<
tp->phi()
139 <<
", status " <<
tp->status()
140 <<
", pdgId " << pdgid);
141 genFiltHT +=
tp->pt();
147 <<
", eta " <<
tp->eta()
148 <<
", phi " <<
tp->phi()
149 <<
", status " <<
tp->status()
150 <<
", pdgId " << pdgid);
155 genFiltMET = sqrt(MEx*MEx+MEy*MEy);
157 return StatusCode::SUCCESS;
def retrieve(aClass, aKey=None)
bool isSpecialNonInteracting(const T &p)
Gaudi::Details::PropertyBase & declareProperty(Gaudi::Property< T > &t)
#define ATH_MSG_VERBOSE(x)
ServiceHandle< StoreGateSvc > & evtStore()
The standard StoreGateSvc (event store) Returns (kind of) a pointer to the StoreGateSvc.
Helper class to provide type-safe access to aux data.
bool is_simulation_particle(const T &p)
Method to establish if a particle (or barcode) was created during the simulation (TODO update to be s...
::StatusCode StatusCode
StatusCode definition for legacy code.
Class describing a truth particle in the MC record.
Class describing the basic event information.
bool isStable(const T &p)
bool isZeroEnergyPhoton(const T &p)
Identify a photon with zero energy. Probably a workaround for a generator bug.