ATLAS Offline Software
Loading...
Searching...
No Matches
MissingEtTruth.h
Go to the documentation of this file.
1/*
2 Copyright (C) 2002-2019 CERN for the benefit of the ATLAS collaboration
3*/
4
5#ifndef MISSINGETEVENT_MissingEtTruth_H
6#define MISSINGETEVENT_MissingEtTruth_H
7/********************************************************************
8
9NAME: MissingEtTruth.cxx
10PACKAGE: offline/Reconstruction/MissingETEvent
11
12AUTHORS: P. Loch, S. Resconi
13CREATED: Oct 2004
14
15PURPOSE:
16********************************************************************/
20
21#include "AtlasHepMC/GenEvent.h"
23
24#include <vector>
25
26
28{
29 public:
30
32 {
33 Int = 0, // all interacting particles till abs(eta) <= 5
34 NonInt = 1, // non interacting particles
35 IntCentral = 2, // interacting particles in central region :
36 // till eta of the full sim
37 IntFwd = 3, // interacting particles in Forward region :
38 // with eta_full_sim < abs(eta) <= 5
39 IntOutCover= 4, // interacting particles with abs(eta) > 5
40 Muons = 5, // truth muons ( all )
41 Size = 6,
42 NotValid = 999
43 };
44
45 //contructors
50
51 virtual ~MissingEtTruth();
52
53 // add a cell
54 void addPart(HepMC::ConstGenParticlePtr aPart, double etaFull);
55
56 // set Truth contributions
57 void setExTruth(TruthIndex aTruth, double theEx);
58 void setEyTruth(TruthIndex aTruth, double theEy);
59 void setEtSumTruth(TruthIndex aTruth, double theEtSum);
60
61 void setExTruthVec(std::vector<double>&& exCaloVec);
62 void setEyTruthVec(std::vector<double>&& exCaloVec);
63 void setEtSumTruthVec(std::vector<double>&& etSumCaloVec);
64
65 // retrieve Truth contributions
66 double exTruth(TruthIndex aTruth) const;
67 double eyTruth(TruthIndex aTruth) const;
68 double etSumTruth(TruthIndex aTruth) const;
69
70 const std::vector<double>& exTruthVec() const;
71 const std::vector<double>& eyTruthVec() const;
72 const std::vector<double>& etSumTruthVec() const;
73
74
75 protected:
76
77 std::vector<double> m_exTruth;
78 std::vector<double> m_eyTruth;
79 std::vector<double> m_etSumTruth;
80
81 void setup();
82
83};
84
85CLASS_DEF(MissingEtTruth, 73891893, 1)
86
87#endif
macros to associate a CLID to a type
#define CLASS_DEF(NAME, CID, VERSION)
associate a clid and a version to a type eg
std::vector< double > m_exTruth
void setExTruthVec(std::vector< double > &&exCaloVec)
virtual ~MissingEtTruth()
void setEtSumTruthVec(std::vector< double > &&etSumCaloVec)
std::vector< double > m_eyTruth
double exTruth(TruthIndex aTruth) const
void addPart(HepMC::ConstGenParticlePtr aPart, double etaFull)
void setEyTruth(TruthIndex aTruth, double theEy)
std::vector< double > m_etSumTruth
double etSumTruth(TruthIndex aTruth) const
void setEtSumTruth(TruthIndex aTruth, double theEtSum)
const std::vector< double > & eyTruthVec() const
void setEyTruthVec(std::vector< double > &&exCaloVec)
const std::vector< double > & exTruthVec() const
double eyTruth(TruthIndex aTruth) const
void setExTruth(TruthIndex aTruth, double theEx)
const std::vector< double > & etSumTruthVec() const
const GenParticle * ConstGenParticlePtr
Definition GenParticle.h:38
Definition Muons.py:1