hpstr
The Heavy Photon Search Toolkit for Reconstruction (hpstr) provides an interface to physics data from the HPS experiment saved in the LCIO format and converts it into an ROOT based format.
All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Pages
MCAnaHistos.h
Go to the documentation of this file.
1#ifndef MCANAHISTOS_H
2#define MCANAHISTOS_H
3
4// ROOT
5#include "TLorentzVector.h"
6
7// HPSTR
8#include "HistoManager.h"
9#include "MCParticle.h"
10#include "MCTrackerHit.h"
11#include "MCEcalHit.h"
12#include <string>
13#include <vector>
14
20class MCAnaHistos : public HistoManager {
21
22 public:
28 MCAnaHistos(const std::string& inputName) : HistoManager(inputName) { m_name = inputName; };
29
34 virtual void Define3DHistos(){};
35
40 virtual void Define2DHistos();
41
46 virtual void Define1DHistos(){};
47
55 void FillMCParticles(std::vector<MCParticle*> *mcParts, std::string analysis, float weight = 1.);
56
63 void FillMCTrackerHits(std::vector<MCTrackerHit*> *mcTrkrHits, float weight = 1.);
64
71 void FillMCEcalHits(std::vector<MCEcalHit*> *mcEcalHits, float weight = 1.);
72 void FillAllFindableTracks(MCParticle* eleRad,MCParticle* eleRec, MCParticle* pos, double weight);
73 void FillMCParticleHistos(MCParticle* mcpart, std::string label, double weight);
74 void FillMCPairHistos(MCParticle* ele,MCParticle* pos,std::string label, double weight);
75};
76
77#endif //MCANAHISTOS_H
Class used to encapsulate mc Ecal hit information.
Class used to encapsulate information about a mc particle.
Class used to encapsulate mc tracker hit information.
description
std::string m_name
description
description
Definition MCAnaHistos.h:20
virtual void Define3DHistos()
description
Definition MCAnaHistos.h:34
void FillMCParticles(std::vector< MCParticle * > *mcParts, std::string analysis, float weight=1.)
description
void FillMCParticleHistos(MCParticle *mcpart, std::string label, double weight)
void FillMCPairHistos(MCParticle *ele, MCParticle *pos, std::string label, double weight)
void FillMCTrackerHits(std::vector< MCTrackerHit * > *mcTrkrHits, float weight=1.)
description
MCAnaHistos(const std::string &inputName)
Constructor.
Definition MCAnaHistos.h:28
virtual void Define1DHistos()
description
Definition MCAnaHistos.h:46
void FillMCEcalHits(std::vector< MCEcalHit * > *mcEcalHits, float weight=1.)
description
void FillAllFindableTracks(MCParticle *eleRad, MCParticle *eleRec, MCParticle *pos, double weight)
virtual void Define2DHistos()
description