CMS 3D CMS Logo

HcalTB02Analysis.h
Go to the documentation of this file.
1 #ifndef SimG4CMS_HcalTestBeam_HcalTB02Analysis_H
2 #define SimG4CMS_HcalTestBeam_HcalTB02Analysis_H
3 // -*- C++ -*-
4 //
5 // Package: HcalTestBeam
6 // Class : HcalTB02Analysis
7 //
14 //
15 // Original Author: Sunanda Banerjee
16 // Created: Thu May 18 10:14:34 CEST 2006
17 //
18 
19 // system include files
20 #include <iostream>
21 #include <memory>
22 #include <map>
23 #include <vector>
24 #include <string>
25 
26 // user include files
32 
35 
36 #include "G4Step.hh"
37 #include "G4Track.hh"
38 #include "G4ThreeVector.hh"
39 
41  public Observer<const BeginOfEvent *>,
42  public Observer<const EndOfEvent *> {
43 
44 public:
45 
47  ~HcalTB02Analysis() override;
48 
49  void produce(edm::Event&, const edm::EventSetup&) override;
50 
51 private:
52 
53  HcalTB02Analysis(const HcalTB02Analysis&) = delete; // stop default
54  const HcalTB02Analysis& operator=(const HcalTB02Analysis&) = delete;
55 
56  // observer methods
57  void update(const BeginOfEvent * evt) override;
58  void update(const EndOfEvent * evt) override;
59 
61  void clear();
62  void finish();
63 
64 private:
65 
66  // Private Tuples
68 
69  // to read from parameter set
70  bool hcalOnly;
72  std::vector<std::string> names;
73 
74  //To be saved
75  std::map<int,float> energyInScints, energyInCrystals;
76  std::map<int,float> primaries;
81  int maxTime;
86  };
87 
88 #endif
std::string fileNameTuple
~HcalTB02Analysis() override
const HcalTB02Analysis & operator=(const HcalTB02Analysis &)=delete
void produce(edm::Event &, const edm::EventSetup &) override
void fillEvent(HcalTB02HistoClass &)
std::map< int, float > energyInCrystals
HcalTB02Analysis(const edm::ParameterSet &p)
void update(const BeginOfEvent *evt) override
This routine will be called when the appropriate signal arrives.
HcalTB02Histo * histo
std::map< int, float > primaries
std::map< int, float > energyInScints
std::vector< std::string > names