CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
List of all members | Public Member Functions | Protected Member Functions | Private Attributes
HcalSimHitStudy Class Reference

#include <HcalSimHitStudy.h>

Inheritance diagram for HcalSimHitStudy:
edm::EDAnalyzer

Public Member Functions

 HcalSimHitStudy (const edm::ParameterSet &ps)
 
 ~HcalSimHitStudy ()
 
- Public Member Functions inherited from edm::EDAnalyzer
 EDAnalyzer ()
 
std::string workerType () const
 
virtual ~EDAnalyzer ()
 

Protected Member Functions

void analyze (const edm::Event &e, const edm::EventSetup &c)
 
void analyzeHits (std::vector< PCaloHit > &)
 
void beginJob ()
 
void endJob ()
 
- Protected Member Functions inherited from edm::EDAnalyzer
CurrentProcessingContext const * currentContext () const
 

Private Attributes

bool checkHit_
 
DQMStoredbe_
 
std::string g4Label
 
std::string hcalHits
 
MonitorElementmeAllNHit_
 
MonitorElementmeBadDetHit_
 
MonitorElementmeBadIdHit_
 
MonitorElementmeBadSubHit_
 
MonitorElementmeDepthHit_
 
MonitorElementmeDetectHit_
 
MonitorElementmeEnergyHit_
 
MonitorElementmeEtaHit_
 
MonitorElementmeHBDepHit_
 
MonitorElementmeHBEneHit2_
 
MonitorElementmeHBEneHit_
 
MonitorElementmeHBEtaHit_
 
MonitorElementmeHBL10Ene_
 
MonitorElementmeHBL10EneP_
 
MonitorElementmeHBNHit_
 
MonitorElementmeHBPhiHit_
 
MonitorElementmeHBTimHit_
 
MonitorElementmeHEDepHit_
 
MonitorElementmeHEEneHit2_
 
MonitorElementmeHEEneHit_
 
MonitorElementmeHEEtaHit_
 
MonitorElementmeHEL10Ene_
 
MonitorElementmeHEL10EneP_
 
MonitorElementmeHENHit_
 
MonitorElementmeHEPhiHit_
 
MonitorElementmeHETimHit_
 
MonitorElementmeHFDepHit_
 
MonitorElementmeHFEneHit2_
 
MonitorElementmeHFEneHit_
 
MonitorElementmeHFEtaHit_
 
MonitorElementmeHFL10Ene_
 
MonitorElementmeHFL10EneP_
 
MonitorElementmeHFNHit_
 
MonitorElementmeHFPhiHit_
 
MonitorElementmeHFTimHit_
 
MonitorElementmeHODepHit_
 
MonitorElementmeHOEneHit2_
 
MonitorElementmeHOEneHit_
 
MonitorElementmeHOEtaHit_
 
MonitorElementmeHOL10Ene_
 
MonitorElementmeHOL10EneP_
 
MonitorElementmeHONHit_
 
MonitorElementmeHOPhiHit_
 
MonitorElementmeHOTimHit_
 
MonitorElementmePhiHit_
 
MonitorElementmeSubdetHit_
 
MonitorElementmeTimeHit_
 
MonitorElementmeTimeWHit_
 
std::string outFile_
 
bool verbose_
 

Additional Inherited Members

- Public Types inherited from edm::EDAnalyzer
typedef EDAnalyzer ModuleType
 
typedef WorkerT< EDAnalyzerWorkerType
 
- Static Public Member Functions inherited from edm::EDAnalyzer
static const std::string & baseType ()
 
static void fillDescriptions (ConfigurationDescriptions &descriptions)
 
static void prevalidate (ConfigurationDescriptions &)
 

Detailed Description

Definition at line 28 of file HcalSimHitStudy.h.

Constructor & Destructor Documentation

HcalSimHitStudy::HcalSimHitStudy ( const edm::ParameterSet ps)

Definition at line 6 of file HcalSimHitStudy.cc.

References checkHit_, dbe_, g4Label, edm::ParameterSet::getUntrackedParameter(), hcalHits, cppFunctionSkipper::operator, outFile_, DQMStore::setVerbose(), DQMStore::showDirStructure(), stor::utils::sleep(), and verbose_.

6  {
7 
8  g4Label = ps.getUntrackedParameter<std::string>("moduleLabel","g4SimHits");
9  hcalHits = ps.getUntrackedParameter<std::string>("HitCollection","HcalHits");
10  outFile_ = ps.getUntrackedParameter<std::string>("outputFile", "hcHit.root");
11  verbose_ = ps.getUntrackedParameter<bool>("Verbose", false);
12  checkHit_= true;
13 
14  edm::LogInfo("HcalSim") << "Module Label: " << g4Label << " Hits: "
15  << hcalHits << " / "<< checkHit_
16  << " Output: " << outFile_;
17 
19  if (dbe_) {
20  if (verbose_) {
21  dbe_->setVerbose(1);
22  sleep (3);
24  } else {
25  dbe_->setVerbose(0);
26  }
27  }
28 }
T getUntrackedParameter(std::string const &, T const &) const
void sleep(Duration_t)
Definition: Utils.h:163
void setVerbose(unsigned level)
Definition: DQMStore.cc:393
std::string hcalHits
std::string outFile_
void showDirStructure(void) const
Definition: DQMStore.cc:2761
std::string g4Label
HcalSimHitStudy::~HcalSimHitStudy ( )

Definition at line 30 of file HcalSimHitStudy.cc.

30 {}

Member Function Documentation

void HcalSimHitStudy::analyze ( const edm::Event e,
const edm::EventSetup c 
)
protectedvirtual

Implements edm::EDAnalyzer.

Definition at line 95 of file HcalSimHitStudy.cc.

References analyzeHits(), checkHit_, edm::EventID::event(), g4Label, edm::Event::getByLabel(), hcalHits, edm::EventBase::id(), edm::HandleBase::isValid(), LogDebug, and edm::EventID::run().

95  {
96 
97  LogDebug("HcalSim") << "Run = " << e.id().run() << " Event = "
98  << e.id().event();
99 
100  std::vector<PCaloHit> caloHits;
102 
103  bool getHits = false;
104  if (checkHit_) {
105  e.getByLabel(g4Label,hcalHits,hitsHcal);
106  if (hitsHcal.isValid()) getHits = true;
107  }
108 
109  LogDebug("HcalSim") << "HcalValidation: Input flags Hits " << getHits;
110 
111  if (getHits) {
112  caloHits.insert(caloHits.end(),hitsHcal->begin(),hitsHcal->end());
113  LogDebug("HcalSim") << "HcalValidation: Hit buffer "
114  << caloHits.size();
115  analyzeHits (caloHits);
116  }
117 }
#define LogDebug(id)
RunNumber_t run() const
Definition: EventID.h:42
EventNumber_t event() const
Definition: EventID.h:44
void analyzeHits(std::vector< PCaloHit > &)
bool isValid() const
Definition: HandleBase.h:76
bool getByLabel(InputTag const &tag, Handle< PROD > &result) const
Definition: Event.h:356
std::string hcalHits
edm::EventID id() const
Definition: EventBase.h:56
std::string g4Label
void HcalSimHitStudy::analyzeHits ( std::vector< PCaloHit > &  hits)
protected

Definition at line 119 of file HcalSimHitStudy.cc.

References dbe_, relval_parameters_module::energy, eta(), MonitorElement::Fill(), HcalBarrel, HcalEndcap, HcalForward, HcalOuter, i, LogDebug, meAllNHit_, meBadDetHit_, meBadIdHit_, meBadSubHit_, meDepthHit_, meDetectHit_, meEnergyHit_, meEtaHit_, meHBDepHit_, meHBEneHit2_, meHBEneHit_, meHBEtaHit_, meHBL10Ene_, meHBL10EneP_, meHBNHit_, meHBPhiHit_, meHBTimHit_, meHEDepHit_, meHEEneHit2_, meHEEneHit_, meHEEtaHit_, meHEL10Ene_, meHEL10EneP_, meHENHit_, meHEPhiHit_, meHETimHit_, meHFDepHit_, meHFEneHit2_, meHFEneHit_, meHFEtaHit_, meHFL10Ene_, meHFL10EneP_, meHFNHit_, meHFPhiHit_, meHFTimHit_, meHODepHit_, meHOEneHit2_, meHOEneHit_, meHOEtaHit_, meHOL10Ene_, meHOL10EneP_, meHONHit_, meHOPhiHit_, meHOTimHit_, mePhiHit_, meSubdetHit_, meTimeHit_, meTimeWHit_, phi, and cond::rpcobgas::time.

Referenced by analyze().

119  {
120 
121  int nHit = hits.size();
122  int nHB=0, nHE=0, nHO=0, nHF=0, nBad1=0, nBad2=0, nBad=0;
123  std::vector<double> encontHB(140, 0.);
124  std::vector<double> encontHE(140, 0.);
125  std::vector<double> encontHF(140, 0.);
126  std::vector<double> encontHO(140, 0.);
127  double entotHB = 0, entotHE = 0, entotHF = 0, entotHO = 0;
128 
129  for (int i=0; i<nHit; i++) {
130  double energy = hits[i].energy();
131  double log10en = log10(energy);
132  int log10i = int( (log10en+10.)*10. );
133  double time = hits[i].time();
134  unsigned int id_ = hits[i].id();
135  HcalDetId id = HcalDetId(id_);
136  int det = id.det();
137  int subdet = id.subdet();
138  int depth = id.depth();
139  int eta = id.ieta();
140  int phi = id.iphi();
141  LogDebug("HcalSim") << "Hit[" << i << "] ID " << std::hex << id_
142  << std::dec << " Det " << det << " Sub "
143  << subdet << " depth " << depth << " Eta " << eta
144  << " Phi " << phi << " E " << energy << " time "
145  << time;
146  if (det == 4) { // Check DetId.h
147  if (subdet == static_cast<int>(HcalBarrel)) nHB++;
148  else if (subdet == static_cast<int>(HcalEndcap)) nHE++;
149  else if (subdet == static_cast<int>(HcalOuter)) nHO++;
150  else if (subdet == static_cast<int>(HcalForward)) nHF++;
151  else { nBad++; nBad2++;}
152  } else { nBad++; nBad1++;}
153  if (dbe_) {
154  meDetectHit_->Fill(double(det));
155  if (det == 4) {
156  meSubdetHit_->Fill(double(subdet));
157  meDepthHit_->Fill(double(depth));
158  meEtaHit_->Fill(double(eta));
159  mePhiHit_->Fill(double(phi));
160  meEnergyHit_->Fill(energy);
161  meTimeHit_->Fill(time);
162  meTimeWHit_->Fill(double(time),energy);
163  if (subdet == static_cast<int>(HcalBarrel)) {
164  meHBDepHit_->Fill(double(depth));
165  meHBEtaHit_->Fill(double(eta));
166  meHBPhiHit_->Fill(double(phi));
167  meHBEneHit_->Fill(energy);
168  meHBEneHit2_->Fill(energy);
169  meHBTimHit_->Fill(time);
170  meHBL10Ene_->Fill(log10en);
171  if( log10i >=0 && log10i < 140 ) encontHB[log10i] += energy;
172  entotHB += energy;
173  } else if (subdet == static_cast<int>(HcalEndcap)) {
174  meHEDepHit_->Fill(double(depth));
175  meHEEtaHit_->Fill(double(eta));
176  meHEPhiHit_->Fill(double(phi));
177  meHEEneHit_->Fill(energy);
178  meHEEneHit2_->Fill(energy);
179  meHETimHit_->Fill(time);
180  meHEL10Ene_->Fill(log10en);
181  if( log10i >=0 && log10i < 140 ) encontHE[log10i] += energy;
182  entotHE += energy;
183  } else if (subdet == static_cast<int>(HcalOuter)) {
184  meHODepHit_->Fill(double(depth));
185  meHOEtaHit_->Fill(double(eta));
186  meHOPhiHit_->Fill(double(phi));
187  meHOEneHit_->Fill(energy);
188  meHOEneHit2_->Fill(energy);
189  meHOTimHit_->Fill(time);
190  meHOL10Ene_->Fill(log10en);
191  if( log10i >=0 && log10i < 140 ) encontHO[log10i] += energy;
192  entotHO += energy;
193  } else if (subdet == static_cast<int>(HcalForward)) {
194  meHFDepHit_->Fill(double(depth));
195  meHFEtaHit_->Fill(double(eta));
196  meHFPhiHit_->Fill(double(phi));
197  meHFEneHit_->Fill(energy);
198  meHFEneHit2_->Fill(energy);
199  meHFTimHit_->Fill(time);
200  meHFL10Ene_->Fill(log10en);
201  if( log10i >=0 && log10i < 140 ) encontHF[log10i] += energy;
202  entotHF += energy;
203  }
204  }
205  }
206  }
207  if( entotHB != 0 ) for( int i=0; i<140; i++ ) meHBL10EneP_->Fill( -10.+(float(i)+0.5)/10., encontHB[i]/entotHB );
208  if( entotHE != 0 ) for( int i=0; i<140; i++ ) meHEL10EneP_->Fill( -10.+(float(i)+0.5)/10., encontHE[i]/entotHE );
209  if( entotHF != 0 ) for( int i=0; i<140; i++ ) meHFL10EneP_->Fill( -10.+(float(i)+0.5)/10., encontHF[i]/entotHF );
210  if( entotHO != 0 ) for( int i=0; i<140; i++ ) meHOL10EneP_->Fill( -10.+(float(i)+0.5)/10., encontHO[i]/entotHO );
211 
212  if (dbe_) {
213  meAllNHit_->Fill(double(nHit));
214  meBadDetHit_->Fill(double(nBad1));
215  meBadSubHit_->Fill(double(nBad2));
216  meBadIdHit_->Fill(double(nBad));
217  meHBNHit_->Fill(double(nHB));
218  meHENHit_->Fill(double(nHE));
219  meHONHit_->Fill(double(nHO));
220  meHFNHit_->Fill(double(nHF));
221  }
222  LogDebug("HcalSim") << "HcalSimHitStudy::analyzeHits: HB " << nHB
223  << " HE " << nHE << " HO " << nHO << " HF " << nHF
224  << " Bad " << nBad << " All " << nHit;
225 
226 }
#define LogDebug(id)
MonitorElement * mePhiHit_
int i
Definition: DBlmapReader.cc:9
MonitorElement * meHEDepHit_
MonitorElement * meHOL10Ene_
MonitorElement * meHOPhiHit_
MonitorElement * meDetectHit_
MonitorElement * meHFNHit_
MonitorElement * meHFEtaHit_
MonitorElement * meHFL10EneP_
MonitorElement * meHFEneHit2_
MonitorElement * meHOL10EneP_
MonitorElement * meHBNHit_
MonitorElement * meHFTimHit_
T eta() const
MonitorElement * meHBEneHit2_
MonitorElement * meHONHit_
void Fill(long long x)
MonitorElement * meAllNHit_
MonitorElement * meHBL10Ene_
MonitorElement * meBadDetHit_
MonitorElement * meHFL10Ene_
MonitorElement * meHETimHit_
MonitorElement * meTimeHit_
MonitorElement * meHFDepHit_
MonitorElement * meHBTimHit_
MonitorElement * meTimeWHit_
MonitorElement * meHBDepHit_
MonitorElement * meBadSubHit_
MonitorElement * meHENHit_
MonitorElement * meBadIdHit_
MonitorElement * meHEL10EneP_
MonitorElement * meEnergyHit_
MonitorElement * meHOEtaHit_
MonitorElement * meEtaHit_
MonitorElement * meHBEneHit_
MonitorElement * meHOTimHit_
MonitorElement * meHBL10EneP_
MonitorElement * meHEEneHit2_
MonitorElement * meHFPhiHit_
MonitorElement * meDepthHit_
MonitorElement * meHBEtaHit_
MonitorElement * meHODepHit_
MonitorElement * meHEL10Ene_
MonitorElement * meHEEneHit_
MonitorElement * meHEPhiHit_
MonitorElement * meSubdetHit_
MonitorElement * meHBPhiHit_
MonitorElement * meHFEneHit_
MonitorElement * meHEEtaHit_
MonitorElement * meHOEneHit_
MonitorElement * meHOEneHit2_
Definition: DDAxes.h:10
void HcalSimHitStudy::beginJob ( void  )
protectedvirtual

Reimplemented from edm::EDAnalyzer.

Definition at line 32 of file HcalSimHitStudy.cc.

References DQMStore::book1D(), DQMStore::bookProfile(), checkHit_, dbe_, meAllNHit_, meBadDetHit_, meBadIdHit_, meBadSubHit_, meDepthHit_, meDetectHit_, meEnergyHit_, meEtaHit_, meHBDepHit_, meHBEneHit2_, meHBEneHit_, meHBEtaHit_, meHBL10Ene_, meHBL10EneP_, meHBNHit_, meHBPhiHit_, meHBTimHit_, meHEDepHit_, meHEEneHit2_, meHEEneHit_, meHEEtaHit_, meHEL10Ene_, meHEL10EneP_, meHENHit_, meHEPhiHit_, meHETimHit_, meHFDepHit_, meHFEneHit2_, meHFEneHit_, meHFEtaHit_, meHFL10Ene_, meHFL10EneP_, meHFNHit_, meHFPhiHit_, meHFTimHit_, meHODepHit_, meHOEneHit2_, meHOEneHit_, meHOEtaHit_, meHOL10Ene_, meHOL10EneP_, meHONHit_, meHOPhiHit_, meHOTimHit_, mePhiHit_, meSubdetHit_, meTimeHit_, meTimeWHit_, and DQMStore::setCurrentFolder().

32  {
33 
34  if (dbe_) {
35  dbe_->setCurrentFolder("HcalHitsV/HcalSimHitsTask");
36 
37  //Histograms for Hits
38  if (checkHit_) {
39  meAllNHit_ = dbe_->book1D("Hit01","Number of Hits in HCal",1000,0.,1000.);
40  meBadDetHit_= dbe_->book1D("Hit02","Hits with wrong Det", 100,0.,100.);
41  meBadSubHit_= dbe_->book1D("Hit03","Hits with wrong Subdet",100,0.,100.);
42  meBadIdHit_ = dbe_->book1D("Hit04","Hits with wrong ID", 100,0.,100.);
43  meHBNHit_ = dbe_->book1D("Hit05","Number of Hits in HB",1000,0.,1000.);
44  meHENHit_ = dbe_->book1D("Hit06","Number of Hits in HE",1000,0.,1000.);
45  meHONHit_ = dbe_->book1D("Hit07","Number of Hits in HO",1000,0.,1000.);
46  meHFNHit_ = dbe_->book1D("Hit08","Number of Hits in HF",1000,0.,1000.);
47  meDetectHit_= dbe_->book1D("Hit09","Detector ID", 50,0.,50.);
48  meSubdetHit_= dbe_->book1D("Hit10","Subdetectors in HCal", 50,0.,50.);
49  meDepthHit_ = dbe_->book1D("Hit11","Depths in HCal", 20,0.,20.);
50  meEtaHit_ = dbe_->book1D("Hit12","Eta in HCal", 100,-50.,50.);
51  mePhiHit_ = dbe_->book1D("Hit13","Phi in HCal", 100,0.,100.);
52  meEnergyHit_= dbe_->book1D("Hit14","Energy in HCal", 100,0.,1.);
53  meTimeHit_ = dbe_->book1D("Hit15","Time in HCal", 100,0.,400.);
54  meTimeWHit_ = dbe_->book1D("Hit16","Time in HCal (E wtd)", 100,0.,400.);
55  meHBDepHit_ = dbe_->book1D("Hit17","Depths in HB", 20,0.,20.);
56  meHEDepHit_ = dbe_->book1D("Hit18","Depths in HE", 20,0.,20.);
57  meHODepHit_ = dbe_->book1D("Hit19","Depths in HO", 20,0.,20.);
58  meHFDepHit_ = dbe_->book1D("Hit20","Depths in HF", 20,0.,20.);
59  meHBEtaHit_ = dbe_->book1D("Hit21","Eta in HB", 100,-50.,50.);
60  meHEEtaHit_ = dbe_->book1D("Hit22","Eta in HE", 100,-50.,50.);
61  meHOEtaHit_ = dbe_->book1D("Hit23","Eta in HO", 100,-50.,50.);
62  meHFEtaHit_ = dbe_->book1D("Hit24","Eta in HF", 100,-50.,50.);
63  meHBPhiHit_ = dbe_->book1D("Hit25","Phi in HB", 100,0.,100.);
64  meHEPhiHit_ = dbe_->book1D("Hit26","Phi in HE", 100,0.,100.);
65  meHOPhiHit_ = dbe_->book1D("Hit27","Phi in HO", 100,0.,100.);
66  meHFPhiHit_ = dbe_->book1D("Hit28","Phi in HF", 100,0.,100.);
67  meHBEneHit_ = dbe_->book1D("Hit29","Energy in HB", 100,0.,1.);
68  meHEEneHit_ = dbe_->book1D("Hit30","Energy in HE", 100,0.,1.);
69  meHOEneHit_ = dbe_->book1D("Hit31","Energy in HO", 100,0.,1.);
70  meHFEneHit_ = dbe_->book1D("Hit32","Energy in HF", 100,0.,100.);
71  meHBTimHit_ = dbe_->book1D("Hit33","Time in HB", 100,0.,400.);
72  meHETimHit_ = dbe_->book1D("Hit34","Time in HE", 100,0.,400.);
73  meHOTimHit_ = dbe_->book1D("Hit35","Time in HO", 100,0.,400.);
74  meHFTimHit_ = dbe_->book1D("Hit36","Time in HF", 100,0.,400.);
75  meHBEneHit2_ = dbe_->book1D("Hit37","Energy in HB 2", 100,0.,0.0001);
76  meHEEneHit2_ = dbe_->book1D("Hit38","Energy in HE 2", 100,0.,0.0001);
77  meHOEneHit2_ = dbe_->book1D("Hit39","Energy in HO 2", 100,0.,0.0001);
78  meHFEneHit2_ = dbe_->book1D("Hit40","Energy in HF 2", 100,0.,0.0001);
79  meHBL10Ene_ = dbe_->book1D("Hit41","Log10Energy in HB", 140, -10., 4. );
80  meHEL10Ene_ = dbe_->book1D("Hit42","Log10Energy in HE", 140, -10., 4. );
81  meHFL10Ene_ = dbe_->book1D("Hit43","Log10Energy in HF", 140, -10., 4. );
82  meHOL10Ene_ = dbe_->book1D("Hit44","Log10Energy in HO", 140, -10., 4. );
83  meHBL10EneP_ = dbe_->bookProfile("Hit45","Log10Energy in HB vs Hit contribution", 140, -10., 4., 100, 0., 1. );
84  meHEL10EneP_ = dbe_->bookProfile("Hit46","Log10Energy in HE vs Hit contribution", 140, -10., 4., 100, 0., 1. );
85  meHFL10EneP_ = dbe_->bookProfile("Hit47","Log10Energy in HF vs Hit contribution", 140, -10., 4., 100, 0., 1. );
86  meHOL10EneP_ = dbe_->bookProfile("Hit48","Log10Energy in HO vs Hit contribution", 140, -10., 4., 100, 0., 1. );
87  }
88  }
89 }
MonitorElement * mePhiHit_
MonitorElement * meHEDepHit_
MonitorElement * meHOL10Ene_
MonitorElement * book1D(const char *name, const char *title, int nchX, double lowX, double highX)
Book 1D histogram.
Definition: DQMStore.cc:717
MonitorElement * meHOPhiHit_
MonitorElement * meDetectHit_
MonitorElement * meHFNHit_
MonitorElement * meHFEtaHit_
MonitorElement * meHFL10EneP_
MonitorElement * meHFEneHit2_
MonitorElement * meHOL10EneP_
MonitorElement * meHBNHit_
MonitorElement * meHFTimHit_
MonitorElement * meHBEneHit2_
MonitorElement * meHONHit_
MonitorElement * meAllNHit_
MonitorElement * meHBL10Ene_
MonitorElement * meBadDetHit_
MonitorElement * meHFL10Ene_
MonitorElement * meHETimHit_
MonitorElement * meTimeHit_
MonitorElement * meHFDepHit_
MonitorElement * meHBTimHit_
MonitorElement * meTimeWHit_
MonitorElement * bookProfile(const char *name, const char *title, int nchX, double lowX, double highX, int nchY, double lowY, double highY, const char *option="s")
Definition: DQMStore.cc:1031
MonitorElement * meHBDepHit_
MonitorElement * meBadSubHit_
MonitorElement * meHENHit_
MonitorElement * meBadIdHit_
MonitorElement * meHEL10EneP_
MonitorElement * meEnergyHit_
MonitorElement * meHOEtaHit_
MonitorElement * meEtaHit_
MonitorElement * meHBEneHit_
MonitorElement * meHOTimHit_
MonitorElement * meHBL10EneP_
MonitorElement * meHEEneHit2_
MonitorElement * meHFPhiHit_
MonitorElement * meDepthHit_
MonitorElement * meHBEtaHit_
MonitorElement * meHODepHit_
MonitorElement * meHEL10Ene_
MonitorElement * meHEEneHit_
MonitorElement * meHEPhiHit_
MonitorElement * meSubdetHit_
MonitorElement * meHBPhiHit_
void setCurrentFolder(const std::string &fullpath)
Definition: DQMStore.cc:429
MonitorElement * meHFEneHit_
MonitorElement * meHEEtaHit_
MonitorElement * meHOEneHit_
MonitorElement * meHOEneHit2_
void HcalSimHitStudy::endJob ( void  )
protectedvirtual

Reimplemented from edm::EDAnalyzer.

Definition at line 91 of file HcalSimHitStudy.cc.

References dbe_, outFile_, and DQMStore::save().

91  {
92  if (dbe_ && outFile_.size() > 0) dbe_->save(outFile_);
93 }
void save(const std::string &filename, const std::string &path="", const std::string &pattern="", const std::string &rewrite="", SaveReferenceTag ref=SaveWithReference, int minStatus=dqm::qstatus::STATUS_OK, const std::string &fileupdate="RECREATE")
Definition: DQMStore.cc:2113
std::string outFile_

Member Data Documentation

bool HcalSimHitStudy::checkHit_
private

Definition at line 45 of file HcalSimHitStudy.h.

Referenced by analyze(), beginJob(), and HcalSimHitStudy().

DQMStore* HcalSimHitStudy::dbe_
private

Definition at line 46 of file HcalSimHitStudy.h.

Referenced by analyzeHits(), beginJob(), endJob(), and HcalSimHitStudy().

std::string HcalSimHitStudy::g4Label
private

Definition at line 44 of file HcalSimHitStudy.h.

Referenced by analyze(), and HcalSimHitStudy().

std::string HcalSimHitStudy::hcalHits
private

Definition at line 44 of file HcalSimHitStudy.h.

Referenced by analyze(), and HcalSimHitStudy().

MonitorElement* HcalSimHitStudy::meAllNHit_
private

Definition at line 48 of file HcalSimHitStudy.h.

Referenced by analyzeHits(), and beginJob().

MonitorElement * HcalSimHitStudy::meBadDetHit_
private

Definition at line 48 of file HcalSimHitStudy.h.

Referenced by analyzeHits(), and beginJob().

MonitorElement * HcalSimHitStudy::meBadIdHit_
private

Definition at line 48 of file HcalSimHitStudy.h.

Referenced by analyzeHits(), and beginJob().

MonitorElement * HcalSimHitStudy::meBadSubHit_
private

Definition at line 48 of file HcalSimHitStudy.h.

Referenced by analyzeHits(), and beginJob().

MonitorElement * HcalSimHitStudy::meDepthHit_
private

Definition at line 50 of file HcalSimHitStudy.h.

Referenced by analyzeHits(), and beginJob().

MonitorElement* HcalSimHitStudy::meDetectHit_
private

Definition at line 50 of file HcalSimHitStudy.h.

Referenced by analyzeHits(), and beginJob().

MonitorElement * HcalSimHitStudy::meEnergyHit_
private

Definition at line 51 of file HcalSimHitStudy.h.

Referenced by analyzeHits(), and beginJob().

MonitorElement * HcalSimHitStudy::meEtaHit_
private

Definition at line 50 of file HcalSimHitStudy.h.

Referenced by analyzeHits(), and beginJob().

MonitorElement* HcalSimHitStudy::meHBDepHit_
private

Definition at line 52 of file HcalSimHitStudy.h.

Referenced by analyzeHits(), and beginJob().

MonitorElement* HcalSimHitStudy::meHBEneHit2_
private

Definition at line 57 of file HcalSimHitStudy.h.

Referenced by analyzeHits(), and beginJob().

MonitorElement* HcalSimHitStudy::meHBEneHit_
private

Definition at line 55 of file HcalSimHitStudy.h.

Referenced by analyzeHits(), and beginJob().

MonitorElement* HcalSimHitStudy::meHBEtaHit_
private

Definition at line 53 of file HcalSimHitStudy.h.

Referenced by analyzeHits(), and beginJob().

MonitorElement* HcalSimHitStudy::meHBL10Ene_
private

Definition at line 58 of file HcalSimHitStudy.h.

Referenced by analyzeHits(), and beginJob().

MonitorElement* HcalSimHitStudy::meHBL10EneP_
private

Definition at line 59 of file HcalSimHitStudy.h.

Referenced by analyzeHits(), and beginJob().

MonitorElement* HcalSimHitStudy::meHBNHit_
private

Definition at line 49 of file HcalSimHitStudy.h.

Referenced by analyzeHits(), and beginJob().

MonitorElement* HcalSimHitStudy::meHBPhiHit_
private

Definition at line 54 of file HcalSimHitStudy.h.

Referenced by analyzeHits(), and beginJob().

MonitorElement* HcalSimHitStudy::meHBTimHit_
private

Definition at line 56 of file HcalSimHitStudy.h.

Referenced by analyzeHits(), and beginJob().

MonitorElement * HcalSimHitStudy::meHEDepHit_
private

Definition at line 52 of file HcalSimHitStudy.h.

Referenced by analyzeHits(), and beginJob().

MonitorElement * HcalSimHitStudy::meHEEneHit2_
private

Definition at line 57 of file HcalSimHitStudy.h.

Referenced by analyzeHits(), and beginJob().

MonitorElement * HcalSimHitStudy::meHEEneHit_
private

Definition at line 55 of file HcalSimHitStudy.h.

Referenced by analyzeHits(), and beginJob().

MonitorElement * HcalSimHitStudy::meHEEtaHit_
private

Definition at line 53 of file HcalSimHitStudy.h.

Referenced by analyzeHits(), and beginJob().

MonitorElement * HcalSimHitStudy::meHEL10Ene_
private

Definition at line 58 of file HcalSimHitStudy.h.

Referenced by analyzeHits(), and beginJob().

MonitorElement * HcalSimHitStudy::meHEL10EneP_
private

Definition at line 59 of file HcalSimHitStudy.h.

Referenced by analyzeHits(), and beginJob().

MonitorElement * HcalSimHitStudy::meHENHit_
private

Definition at line 49 of file HcalSimHitStudy.h.

Referenced by analyzeHits(), and beginJob().

MonitorElement * HcalSimHitStudy::meHEPhiHit_
private

Definition at line 54 of file HcalSimHitStudy.h.

Referenced by analyzeHits(), and beginJob().

MonitorElement * HcalSimHitStudy::meHETimHit_
private

Definition at line 56 of file HcalSimHitStudy.h.

Referenced by analyzeHits(), and beginJob().

MonitorElement * HcalSimHitStudy::meHFDepHit_
private

Definition at line 52 of file HcalSimHitStudy.h.

Referenced by analyzeHits(), and beginJob().

MonitorElement * HcalSimHitStudy::meHFEneHit2_
private

Definition at line 57 of file HcalSimHitStudy.h.

Referenced by analyzeHits(), and beginJob().

MonitorElement * HcalSimHitStudy::meHFEneHit_
private

Definition at line 55 of file HcalSimHitStudy.h.

Referenced by analyzeHits(), and beginJob().

MonitorElement * HcalSimHitStudy::meHFEtaHit_
private

Definition at line 53 of file HcalSimHitStudy.h.

Referenced by analyzeHits(), and beginJob().

MonitorElement * HcalSimHitStudy::meHFL10Ene_
private

Definition at line 58 of file HcalSimHitStudy.h.

Referenced by analyzeHits(), and beginJob().

MonitorElement * HcalSimHitStudy::meHFL10EneP_
private

Definition at line 59 of file HcalSimHitStudy.h.

Referenced by analyzeHits(), and beginJob().

MonitorElement * HcalSimHitStudy::meHFNHit_
private

Definition at line 49 of file HcalSimHitStudy.h.

Referenced by analyzeHits(), and beginJob().

MonitorElement * HcalSimHitStudy::meHFPhiHit_
private

Definition at line 54 of file HcalSimHitStudy.h.

Referenced by analyzeHits(), and beginJob().

MonitorElement * HcalSimHitStudy::meHFTimHit_
private

Definition at line 56 of file HcalSimHitStudy.h.

Referenced by analyzeHits(), and beginJob().

MonitorElement * HcalSimHitStudy::meHODepHit_
private

Definition at line 52 of file HcalSimHitStudy.h.

Referenced by analyzeHits(), and beginJob().

MonitorElement * HcalSimHitStudy::meHOEneHit2_
private

Definition at line 57 of file HcalSimHitStudy.h.

Referenced by analyzeHits(), and beginJob().

MonitorElement * HcalSimHitStudy::meHOEneHit_
private

Definition at line 55 of file HcalSimHitStudy.h.

Referenced by analyzeHits(), and beginJob().

MonitorElement * HcalSimHitStudy::meHOEtaHit_
private

Definition at line 53 of file HcalSimHitStudy.h.

Referenced by analyzeHits(), and beginJob().

MonitorElement * HcalSimHitStudy::meHOL10Ene_
private

Definition at line 58 of file HcalSimHitStudy.h.

Referenced by analyzeHits(), and beginJob().

MonitorElement * HcalSimHitStudy::meHOL10EneP_
private

Definition at line 59 of file HcalSimHitStudy.h.

Referenced by analyzeHits(), and beginJob().

MonitorElement * HcalSimHitStudy::meHONHit_
private

Definition at line 49 of file HcalSimHitStudy.h.

Referenced by analyzeHits(), and beginJob().

MonitorElement * HcalSimHitStudy::meHOPhiHit_
private

Definition at line 54 of file HcalSimHitStudy.h.

Referenced by analyzeHits(), and beginJob().

MonitorElement * HcalSimHitStudy::meHOTimHit_
private

Definition at line 56 of file HcalSimHitStudy.h.

Referenced by analyzeHits(), and beginJob().

MonitorElement* HcalSimHitStudy::mePhiHit_
private

Definition at line 51 of file HcalSimHitStudy.h.

Referenced by analyzeHits(), and beginJob().

MonitorElement * HcalSimHitStudy::meSubdetHit_
private

Definition at line 50 of file HcalSimHitStudy.h.

Referenced by analyzeHits(), and beginJob().

MonitorElement * HcalSimHitStudy::meTimeHit_
private

Definition at line 51 of file HcalSimHitStudy.h.

Referenced by analyzeHits(), and beginJob().

MonitorElement * HcalSimHitStudy::meTimeWHit_
private

Definition at line 51 of file HcalSimHitStudy.h.

Referenced by analyzeHits(), and beginJob().

std::string HcalSimHitStudy::outFile_
private

Definition at line 44 of file HcalSimHitStudy.h.

Referenced by endJob(), and HcalSimHitStudy().

bool HcalSimHitStudy::verbose_
private

Definition at line 45 of file HcalSimHitStudy.h.

Referenced by HcalSimHitStudy().