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  virtual ~HcalTB02Analysis();
48 
49  virtual void produce(edm::Event&, const edm::EventSetup&);
50 
51 private:
52 
53  HcalTB02Analysis(const HcalTB02Analysis&); // stop default
55 
56  // observer methods
57  void update(const BeginOfEvent * evt);
58  void update(const EndOfEvent * evt);
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
const HcalTB02Analysis & operator=(const HcalTB02Analysis &)
void fillEvent(HcalTB02HistoClass &)
virtual ~HcalTB02Analysis()
std::map< int, float > energyInCrystals
HcalTB02Analysis(const edm::ParameterSet &p)
HcalTB02Histo * histo
std::map< int, float > primaries
std::map< int, float > energyInScints
void update(const BeginOfEvent *evt)
This routine will be called when the appropriate signal arrives.
virtual void produce(edm::Event &, const edm::EventSetup &)
std::vector< std::string > names