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
MCAnaProcessor.h
Go to the documentation of this file.
1#ifndef __MC_ANAPROCESSOR_H__
2#define __MC_ANAPROCESSOR_H__
3
4//HPSTR
5#include "HpsEvent.h"
6#include "Collections.h"
7#include "MCParticle.h"
8#include "MCTrackerHit.h"
9#include "MCEcalHit.h"
10#include "MCAnaHistos.h"
11
12
13//ROOT
14#include "Processor.h"
15#include "TClonesArray.h"
16#include "TBranch.h"
17#include "TTree.h"
18#include "TFile.h"
19
20class TTree;
21
26class MCAnaProcessor : public Processor {
27
28 public:
35 MCAnaProcessor(const std::string& name, Process& process);
36
38
46 virtual bool process(IEvent* ievent);
47
53 virtual void initialize(TTree* tree);
54
59 virtual void finalize();
60
66 virtual void configure(const ParameterSet& parameters);
67
68 private:
69
72 std::string histCfgFilename_;
73
75 TTree* tree_;
76 TBranch* bmcParts_{nullptr};
77 TBranch* bmcTrkrHits_{nullptr};
78 TBranch* bmcEcalHits_{nullptr};
79
80 std::vector<MCParticle*> * mcParts_{nullptr};
81 std::vector<MCTrackerHit*> * mcTrkrHits_{nullptr};
82 std::vector<MCEcalHit*> * mcEcalHits_{nullptr};
83
84 std::string anaName_{"recoHitAna"};
85 std::string partColl_{"MCParticle"};
86 std::string trkrHitColl_{"TrackerHits"};
87 std::string ecalHitColl_{"EcalHits"};
88 std::string analysis_{"vertex"};
89
90 int debug_{0};
91
92};
93
94
95#endif
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.
Base classes for all user event processing components to extend.
Definition IEvent.h:7
description
Definition MCAnaHistos.h:20
Insert description here. more details.
std::vector< MCTrackerHit * > * mcTrkrHits_
description
MCAnaHistos * histos
std::string trkrHitColl_
description
std::string ecalHitColl_
description
int debug_
Debug Level.
TBranch * bmcTrkrHits_
description
std::string anaName_
description
virtual void configure(const ParameterSet &parameters)
description
virtual void finalize()
description
TBranch * bmcEcalHits_
description
virtual void initialize(TTree *tree)
description
std::string analysis_
description
std::string partColl_
description
std::vector< MCEcalHit * > * mcEcalHits_
description
TBranch * bmcParts_
description
std::string histCfgFilename_
description
std::vector< MCParticle * > * mcParts_
description
description
Base class for all event processing components.
Definition Processor.h:34
virtual bool process()
Process the histograms and generate analysis output.
Definition Processor.h:95