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 Attributes | Private Member Functions | Private Attributes
Histograms Class Referenceabstract

#include <Histograms.h>

Inheritance diagram for Histograms:
HCovarianceVSParts HCovarianceVSxy HDelta HFunctionResolution HLikelihoodVSPart HMassResolutionVSPart HMassVSPart HMassVSPartProfile HParticle HPartVSEta HPartVSPhi HPartVSPt HResolutionVSPart HTH1D HTH2D HTProfile

Public Member Functions

virtual void Clear ()=0
 
void declareHistograms ()
 
virtual void Fill (const reco::Particle::LorentzVector &p1, const reco::Particle::LorentzVector &p2)
 
virtual void Fill (const reco::Particle::LorentzVector &p1, const reco::Particle::LorentzVector &p2, const int charge, const double &weight=1.)
 
virtual void Fill (const CLHEP::HepLorentzVector &momentum1, const CLHEP::HepLorentzVector &momentum2)
 
virtual void Fill (const CLHEP::HepLorentzVector &momentum1, const CLHEP::HepLorentzVector &momentum2, const int charge, const double &weight=1.)
 
virtual void Fill (const CLHEP::HepLorentzVector &p1, const reco::Particle::LorentzVector &p2)
 
virtual void Fill (const reco::Particle::LorentzVector &p4, const double &weight=1.)
 
virtual void Fill (const reco::Particle::LorentzVector &p4, const int charge, const double &weight=1.)
 
virtual void Fill (const CLHEP::HepLorentzVector &momentum, const int charge, const double &weight=1.)
 
virtual void Fill (const reco::Particle::LorentzVector &p4, const double &resValue, const int charge)
 
virtual void Fill (const reco::Particle::LorentzVector &p4, const double &genValue, const double recValue, const int charge)
 
virtual void Fill (const CLHEP::HepLorentzVector &p, const double &likeValue)
 
virtual void Fill (const unsigned int number)
 
virtual void Fill (const reco::Particle::LorentzVector &recoP1, const int charge1, const reco::Particle::LorentzVector &genP1, const reco::Particle::LorentzVector &recoP2, const int charge2, const reco::Particle::LorentzVector &genP2, const double &recoMass, const double &genMass)
 
virtual void Fill (const reco::Particle::LorentzVector &recoP1, const int charge1, const reco::Particle::LorentzVector &recoP2, const int charge2, const double &recoMass, const double &genMass)
 
virtual void Fill (const reco::Particle::LorentzVector &recoP1, const reco::Particle::LorentzVector &genP1, const reco::Particle::LorentzVector &recoP2, const reco::Particle::LorentzVector &genP2)
 
virtual void Fill (const double &x, const double &y)
 
virtual void Fill (const double &x, const double &y, const double &a, const double &b)
 
virtual void Fill (const reco::Particle::LorentzVector &p41, const reco::Particle::LorentzVector &p42, const reco::Particle::LorentzVector &p4Res, const double &weight=1.)
 
virtual void Fill (const CLHEP::HepLorentzVector &momentum1, const CLHEP::HepLorentzVector &momentum2, const CLHEP::HepLorentzVector &momentumRes, const double &weight=1.)
 
void fillEventInfo (int proc, int strk, int ntrkr)
 
void fillRecHistograms (const RecTrack_t &r)
 
void fillSimHistograms (const SimTrack_t &s)
 
void fillVzeroHistograms (const RecVzero_t &r, int part)
 
virtual double Get (const reco::Particle::LorentzVector &recoP1, const TString &covarianceName)
 
virtual TString GetName ()
 
 Histograms ()
 
 Histograms (const TString &name)
 
 Histograms (TFile *outputFile, const TString &name)
 
 Histograms (const edm::ParameterSet &pset)
 
virtual void SetWeight (double weight)
 
virtual void Write ()=0
 
void writeHistograms ()
 
virtual ~Histograms ()
 
 ~Histograms ()
 

Protected Attributes

TDirectory * histoDir_
 
TString name_
 
TFile * outputFile_
 
double theWeight_
 

Private Member Functions

int getCharge (int charge)
 
int getParticle (int id)
 

Private Attributes

std::vector< double > etaBins
 
EventInfo_t eventInfoValues
 
bool fillHistograms
 
bool fillNtuples
 
std::vector< TH3F * > hacc
 
std::vector< TH3F * > hall
 
std::vector< TH2F * > hdac
 
std::vector< TH2F * > hdec
 
std::vector< TH2F * > hder
 
std::vector< TH2F * > held
 
std::vector< TH3F * > helo
 
std::vector< TH1F * > heve
 
std::vector< TH3F * > hfak
 
std::vector< TH3F * > hima
 
TFile * histoFile
 
std::vector< TH3F * > hmul
 
std::vector< TH3F * > hnhi
 
std::vector< TH2F * > hpro
 
std::vector< TH3F * > href
 
std::vector< TH3F * > hrho
 
std::vector< TH3F * > hrpt
 
std::vector< TH3F * > hsim
 
std::vector< TH2F * > hsp0
 
std::vector< TH2F * > hsp1
 
std::vector< TH2F * > hsp2
 
std::vector< TH3F * > hvpt
 
std::vector< double > ldeBins
 
std::vector< double > lpBins
 
std::vector< double > metaBins
 
std::vector< double > nhitBins
 
std::vector< double > ntrkBins
 
TFile * ntupleFile
 
std::vector< double > ptBins
 
std::vector< double > ratBins
 
RecTrack_t recTrackValues
 
RecVzero_t recVzeroValues
 
std::vector< double > rhoBins
 
SimTrack_t simTrackValues
 
std::vector< TTree * > trackTrees
 
std::vector< double > zBins
 

Detailed Description

Collection of histograms for GLB muon analysis

Date:
2012/12/20 16:09:21
Revision:
1.17
Author
S. Bolognesi - INFN Torino / T.Dorigo - INFN Padova

Collection of histograms for DT RecHit and Segment test.

Date:
2011/04/18 15:58:30
Revision:
1.13
Author
S. Bolognesi and G. Cerminara - INFN Torino

No description available.

Date:
2008/06/24 16:40:53
Revision:
1.5
Author
R. Bellan - INFN Torino ricca.nosp@m.rdo..nosp@m.bella.nosp@m.n@ce.nosp@m.rn.ch

Definition at line 37 of file Histograms.h.

Constructor & Destructor Documentation

Histograms::Histograms ( )
inline

Definition at line 42 of file Histograms.h.

42 : theWeight_(1), histoDir_(0) {};
TDirectory * histoDir_
Definition: Histograms.h:125
double theWeight_
Definition: Histograms.h:122
Histograms::Histograms ( const TString &  name)
inline

Definition at line 43 of file Histograms.h.

43 : theWeight_(1), name_(name), histoDir_(0) {}
TString name_
Definition: Histograms.h:123
TDirectory * histoDir_
Definition: Histograms.h:125
double theWeight_
Definition: Histograms.h:122
Histograms::Histograms ( TFile *  outputFile,
const TString &  name 
)
inline

Definition at line 44 of file Histograms.h.

References histoDir_.

44  :
45  theWeight_(1),
46  name_(name),
48  histoDir_( outputFile->GetDirectory(name) )
49  {
50  if( histoDir_ == 0 ) {
51  histoDir_ = outputFile->mkdir(name);
52  }
53  histoDir_->cd();
54  }
TFile * outputFile_
Definition: Histograms.h:124
TString name_
Definition: Histograms.h:123
TDirectory * histoDir_
Definition: Histograms.h:125
double theWeight_
Definition: Histograms.h:122
Histograms::~Histograms ( )
inlinevirtual

Definition at line 58 of file Histograms.h.

58 {};
Histograms::Histograms ( const edm::ParameterSet pset)

Definition at line 83 of file Histograms.cc.

References fillHistograms, fillNtuples, edm::ParameterSet::getParameter(), histoFile, ntupleFile, and AlCaHLTBitMon_QueryRunRegistry::string.

84 {
85  fillHistograms = pset.getParameter<bool>("fillHistograms");
86  fillNtuples = pset.getParameter<bool>("fillNtuples");
87 
88  std::string histoFileLabel = pset.getParameter<std::string>("histoFile");
89  histoFile = new TFile(histoFileLabel.c_str(),"recreate");
90 
91  std::string ntupleFileLabel = pset.getParameter<std::string>("ntupleFile");
92  ntupleFile = new TFile(ntupleFileLabel.c_str(),"recreate");
93 
94 // resultFile->cd();
95 }
T getParameter(std::string const &) const
bool fillNtuples
Definition: Histograms.h:84
TFile * ntupleFile
Definition: Histograms.h:82
bool fillHistograms
Definition: Histograms.h:83
TFile * histoFile
Definition: Histograms.h:81
Histograms::~Histograms ( )

Member Function Documentation

virtual void Histograms::Clear ( )
pure virtual
void Histograms::declareHistograms ( )

Definition at line 152 of file Histograms.cc.

References aks, ala, DeDxDiscriminatorTools::charge(), chargeName, constexpr, alignCSCRings::e, eta(), etaBins, jptDQMConfig_cff::etaMax, jptDQMConfig_cff::etaMin, eventInfoValues, feedDown, fillHistograms, fillNtuples, first, gam, hacc, hall, hdac, hdec, hder, held, helo, heve, hfak, hima, hmul, hnhi, hpro, href, hrho, hrpt, hsim, hsp0, hsp1, hsp2, hvpt, gen::k, k0s, kst, lam, ldeBins, create_public_lumi_plots::log, lpBins, metaBins, nCharges, nFeedDowns, nhitBins, ntrkBins, partName, phi, pip, ptBins, ratBins, recTrackValues, recVzeroValues, rho, rhoBins, edm::second(), simTrackValues, trackTrees, detailsBasic3DVector::z, and zBins.

153 {
154  if(fillNtuples)
155  {
156  TString leafStr;
157 
158  trackTrees.push_back(new TTree("simTrackTree","simTrackTree"));
159  leafStr = "ids/I:etas/F:pts/F:acc/I:prim/I:nrec/I:ntrkr/I";
160  trackTrees[0]->Branch("simTrackValues", &simTrackValues, leafStr.Data());
161 
162  trackTrees.push_back(new TTree("recTrackTree","recTrackTree"));
163  leafStr = "charge/I:etar/F:ptr/F:phir/F:zr/F:logpr/F:logde/F:nhitr/I:prim/I:nsim/I:ids/I:parids/I:etas/F:pts/F:ntrkr/I";
164  trackTrees[1]->Branch("recTrackValues", &recTrackValues, leafStr.Data());
165 
166  trackTrees.push_back(new TTree("recVzeroTree","recVzeroTree"));
167  leafStr = "etar/F:ptr/F:ima/F:rhor/F";
168  trackTrees[2]->Branch("recVzeroValues", &recVzeroValues, leafStr.Data());
169 
170  trackTrees.push_back(new TTree("eventInfoTree","eventInfoTree"));
171  leafStr = "proc/I:strk/I:ntrkr/I";
172  trackTrees[3]->Branch("eventInfoValues", &eventInfoValues, leafStr.Data());
173  }
174 
175  if(fillHistograms)
176  {
178  // Pt
179  const double small = 1e-3;
180  double pt;
181 
182  for(pt = 0; pt < 1 - small; pt += 0.05) ptBins.push_back(pt);
183  for(pt = 1; pt < 2 - small; pt += 0.1 ) ptBins.push_back(pt);
184  for(pt = 2; pt < 4 - small; pt += 0.2 ) ptBins.push_back(pt);
185  for(pt = 4; pt < 8 - small; pt += 0.5 ) ptBins.push_back(pt);
186  for(pt = 8; pt < 16 - small; pt += 1. ) ptBins.push_back(pt);
187  for(pt = 16; pt < 32 - small; pt += 2. ) ptBins.push_back(pt);
188  for(pt = 32; pt < 64 - small; pt += 4. ) ptBins.push_back(pt);
189 
190  constexpr float ratMin = 0.5;
191  constexpr float ratMax = 1.5;
192  constexpr float ratWidth = 1./200;
193 
194  for(double rat = ratMin; rat < ratMax + ratWidth/2; rat += ratWidth)
195  ratBins.push_back(rat);
196 
198  // Eta (-3,3)
199  constexpr float etaMin = -3.0;
200  constexpr float etaMax = 3.0;
201  constexpr float etaWidth = 0.2;
202 
203  for(double eta = etaMin; eta < etaMax + etaWidth/2; eta += etaWidth)
204  etaBins.push_back(eta);
205 
206 // for(double eta = etaMin; eta < etaMax + etaWidth/2; eta += etaWidth/10)
207  for(double eta = etaMin; eta < etaMax + etaWidth/2; eta += etaWidth/5)
208  metaBins.push_back(eta);
209 
210  constexpr float zMin = -20.;
211  constexpr float zMax = 20.;
212 // constexpr float zWidth = 0.1;
213  constexpr float zWidth = 0.2;
214 
215  for(double z = zMin; z < zMax + zWidth/2; z += zWidth)
216  zBins.push_back(z);
217 
219  // Number of recontructed tracks
220  constexpr float ntrkMin = 0.5;
221 // FIXME
222 // constexpr float ntrkMax = 200.;
223 // constexpr float ntrkWidth = 5.;
224  constexpr float ntrkMax = 1000.;
225  constexpr float ntrkWidth = 10.;
226 
227  for(double ntrk = ntrkMin; ntrk < ntrkMax + ntrkWidth; ntrk += ntrkWidth)
228  ntrkBins.push_back(ntrk);
229 
230 
231  char histName[256];
232 
234  // EventInfo
235  sprintf(histName,"heve");
236  heve.push_back(new TH1F(histName,histName, 200, -0.5,199.5));
237 
238  sprintf(histName,"hsdx");
239  heve.push_back(new TH1F(histName,histName, 200, -0.5,199.5));
240 
241  sprintf(histName,"hddx");
242  heve.push_back(new TH1F(histName,histName, 200, -0.5,199.5));
243 
244  sprintf(histName,"hndx");
245  heve.push_back(new TH1F(histName,histName, 200, -0.5,199.5));
246 
247  sprintf(histName,"hder");
248  hder.push_back(new TH2F(histName,histName, 200, -0.5,199.5,
249  200, -0.5,199.5));
250 
252  // SimTrack
253  for(int part = pip; part <= ala; part++)
254  {
255  // simulated
256  sprintf(histName,"hsim_%s", partName[part]);
257  hsim.push_back(new TH3F(histName,histName,
258  etaBins.size()-1, &etaBins[0],
259  ptBins.size()-1, &ptBins[0],
260  ntrkBins.size()-1, &ntrkBins[0]));
261 
262  // accepted
263  sprintf(histName,"hacc_%s", partName[part]);
264  hacc.push_back(new TH3F(histName,histName,
265  etaBins.size()-1, &etaBins[0],
266  ptBins.size()-1, &ptBins[0],
267  ntrkBins.size()-1, &ntrkBins[0]));
268 
269  // reconstructed/efficiency
270  sprintf(histName,"href_%s", partName[part]);
271  href.push_back(new TH3F(histName,histName,
272  etaBins.size()-1, &etaBins[0],
273  ptBins.size()-1, &ptBins[0],
274  ntrkBins.size()-1, &ntrkBins[0]));
275 
276  // multiply reconstructed
277  sprintf(histName,"hmul_%s", partName[part]);
278  hmul.push_back(new TH3F(histName,histName,
279  etaBins.size()-1, &etaBins[0],
280  ptBins.size()-1, &ptBins[0],
281  ntrkBins.size()-1, &ntrkBins[0]));
282  }
283 
285  // RecTrack
286  for(int charge = 0; charge < nCharges; charge++)
287  {
288  sprintf(histName,"hall_%s",chargeName[charge]);
289  hall.push_back(new TH3F(histName,histName,
290  etaBins.size()-1, &etaBins[0],
291  ptBins.size()-1, &ptBins[0],
292  ntrkBins.size()-1, &ntrkBins[0]));
293 
294  sprintf(histName,"hdac_%s",chargeName[charge]);
295  hdac.push_back(new TH2F(histName,histName,
296  metaBins.size()-1, &metaBins[0],
297  zBins.size()-1, &zBins[0]));
298 
300  // RecTrack -- FakeRate
301  sprintf(histName,"hfak_%s",chargeName[charge]);
302  hfak.push_back(new TH3F(histName,histName,
303  etaBins.size()-1, &etaBins[0],
304  ptBins.size()-1, &ptBins[0],
305  ntrkBins.size()-1, &ntrkBins[0]));
306  }
307 
309  // RecTrack -- Resolution, bias
310  for(int part = pip; part <= ala; part++)
311  {
312  // value
313  sprintf(histName,"hvpt_%s",partName[part]);
314  hvpt.push_back(new TH3F(histName,histName,
315  etaBins.size()-1, &etaBins[0],
316  ptBins.size()-1, &ptBins[0],
317  ptBins.size()-1, &ptBins[0]));
318 
319  // ratio
320  sprintf(histName,"hrpt_%s",partName[part]);
321  hrpt.push_back(new TH3F(histName,histName,
322  etaBins.size()-1, &etaBins[0],
323  ptBins.size()-1, &ptBins[0],
324  ratBins.size()-1, &ratBins[0]));
325 
326  sprintf(histName,"hsp0_%s",partName[part]);
327  hsp0.push_back(new TH2F(histName,histName,
328  etaBins.size()-1, &etaBins[0],
329  ptBins.size()-1, &ptBins[0]));
330 
331  sprintf(histName,"hsp1_%s",partName[part]);
332  hsp1.push_back(new TH2F(histName,histName,
333  etaBins.size()-1, &etaBins[0],
334  ptBins.size()-1, &ptBins[0]));
335 
336  sprintf(histName,"hsp2_%s",partName[part]);
337  hsp2.push_back(new TH2F(histName,histName,
338  etaBins.size()-1, &etaBins[0],
339  ptBins.size()-1, &ptBins[0]));
340  }
341 
343  // RecTrack -- FeedDown
344  for(int k = 0; k < nFeedDowns; k++)
345  {
346  sprintf(histName,"hpro_%s_%s", partName[feedDown[k].first], // produced
348  hpro.push_back(new TH2F(histName,histName,
349  etaBins.size()-1, &etaBins[0],
350  ptBins.size()-1, &ptBins[0]));
351 
352  sprintf(histName,"hdec_%s_%s", partName[feedDown[k].first], // decay
354  hdec.push_back(new TH2F(histName,histName,
355  etaBins.size()-1, &etaBins[0],
356  ptBins.size()-1, &ptBins[0]));
357  }
358 
360  // EnergyLoss
361  constexpr float lpMin = -3; // 50 MeV
362  constexpr float lpMax = 2; // 7.4 GeV
363  constexpr float lpWidth = (lpMax - lpMin)/100;
364  for(double lp = lpMin; lp < lpMax + lpWidth/2; lp += lpWidth)
365  lpBins.push_back(lp);
366 
367  const float ldeMin = log(1);
368  const float ldeMax = log(100);
369  const float ldeWidth = (ldeMax - ldeMin)/250;
370  for(double lde = ldeMin; lde < ldeMax + ldeWidth/2; lde += ldeWidth)
371  ldeBins.push_back(lde);
372 
373  for(double nhit = -0.5; nhit < 50; nhit += 1)
374  nhitBins.push_back(nhit);
375 
376  for(int charge = 0; charge < nCharges; charge++)
377  {
378  // All hits
379  // dE/dx
380  sprintf(histName,"helo_%s", chargeName[charge]);
381  helo.push_back(new TH3F(histName,histName,
382  etaBins.size()-1, &etaBins[0],
383  ptBins.size()-1, &ptBins[0],
384  ldeBins.size()-1, &ldeBins[0]));
385 
386  // Number of hits used
387  sprintf(histName,"hnhi_%s", chargeName[charge]);
388  hnhi.push_back(new TH3F(histName,histName,
389  etaBins.size()-1, &etaBins[0],
390  ptBins.size()-1, &ptBins[0],
391  nhitBins.size()-1, &nhitBins[0]));
392 
393  // Demo plot
394  sprintf(histName,"held_%s", chargeName[charge]);
395  held.push_back(new TH2F(histName,histName,
396  lpBins.size()-1, &lpBins[0],
397  ldeBins.size()-1, &ldeBins[0]));
398  }
399 
400 /*
401  for(int charge = 0; charge < nCharges; charge++)
402  {
403  // Strip hits
404  // dE/dx
405  sprintf(histName,"selo_%s", chargeName[charge]);
406  selo.push_back(new TH3F(histName,histName,
407  etaBins.size()-1, &etaBins[0],
408  ptBins.size()-1, &ptBins[0],
409  ldeBins.size()-1, &ldeBins[0]));
410 
411  // Number of hits used
412  sprintf(histName,"snhi_%s", chargeName[charge]);
413  snhi.push_back(new TH3F(histName,histName,
414  etaBins.size()-1, &etaBins[0],
415  ptBins.size()-1, &ptBins[0],
416  nhitBins.size()-1, &nhitBins[0]));
417 
418  // Demo plot
419  sprintf(histName,"seld_%s", chargeName[charge]);
420  seld.push_back(new TH2F(histName,histName,
421  lpBins.size()-1, &lpBins[0],
422  ldeBins.size()-1, &ldeBins[0]));
423  }
424 */
425 
427  // Invariant mass
428  constexpr float rhoMin = 0.;
429  constexpr float rhoMax = 5.;
430  constexpr float rhoWidth = 0.2;
431  for(double rho_ = rhoMin; rho_ < rhoMax + rhoWidth/2; rho_ += rhoWidth)
432  rhoBins.push_back(rho_);
433 
434 
435  for(int part = gam; part <= phi; part++)
436  {
437  float imMin = 0;
438  float imMax = 0;
439  float imWidth = 0;
440 
441  if(part == gam) { imMin = 0.0; imMax = 0.2; imWidth = 0.005; }
442  if(part == k0s) { imMin = 0.3; imMax = 0.7; imWidth = 0.005; }
443  if(part == lam ||
444  part == ala) { imMin = 1.0; imMax = 1.3; imWidth = 0.002; }
445 
446  if(part == rho) { imMin = 0.2; imMax = 1.2; imWidth = 0.010; }
447  if(part == kst ||
448  part == aks) { imMin = 0.6; imMax = 1.6; imWidth = 0.010; }
449  if(part == phi) { imMin = 0.9; imMax = 1.1; imWidth = 0.002; }
450 
451  std::vector<double> imBins;
452  double im;
453  for(im = imMin; im < imMax + imWidth/2; im += imWidth)
454  imBins.push_back(im);
455 
456  if(imWidth > 0)
457  {
458  sprintf(histName,"hima_%s", partName[part]);
459  hima.push_back(new TH3F(histName,histName,
460  etaBins.size()-1, &etaBins[0],
461  ptBins.size()-1, &ptBins[0],
462  imBins.size()-1, &imBins[0]));
463 
464  if(part >= rho && part <= phi)
465  {
466  sprintf(histName,"himp_%s", partName[part]);
467  hima.push_back(new TH3F(histName,histName,
468  etaBins.size()-1, &etaBins[0],
469  ptBins.size()-1, &ptBins[0],
470  imBins.size()-1, &imBins[0]));
471 
472  sprintf(histName,"himm_%s", partName[part]);
473  hima.push_back(new TH3F(histName,histName,
474  etaBins.size()-1, &etaBins[0],
475  ptBins.size()-1, &ptBins[0],
476  imBins.size()-1, &imBins[0]));
477 
478  sprintf(histName,"himx_%s", partName[part]);
479  hima.push_back(new TH3F(histName,histName,
480  etaBins.size()-1, &etaBins[0],
481  ptBins.size()-1, &ptBins[0],
482  imBins.size()-1, &imBins[0]));
483  }
484 
485  sprintf(histName,"hrho_%s", partName[part]);
486  hrho.push_back(new TH3F(histName,histName,
487  rhoBins.size()-1, &rhoBins[0],
488  ptBins.size()-1, &ptBins[0],
489  imBins.size()-1, &imBins[0]));
490  }
491  }
492  }
493 }
std::vector< TH2F * > hdec
Definition: Histograms.h:120
#define nFeedDowns
Definition: Histograms.cc:59
std::vector< TH3F * > hmul
Definition: Histograms.h:101
EventInfo_t eventInfoValues
Definition: Histograms.h:79
std::vector< TH1F * > heve
Definition: Histograms.h:94
std::vector< TH2F * > held
Definition: Histograms.h:125
Definition: DDAxes.h:10
std::vector< TH2F * > hpro
Definition: Histograms.h:119
T eta() const
RecTrack_t recTrackValues
Definition: Histograms.h:77
std::vector< TH3F * > href
Definition: Histograms.h:100
double charge(const std::vector< uint8_t > &Ampls)
float float float z
const char * chargeName[nCharges+2]
Definition: Histograms.cc:20
std::vector< double > lpBins
Definition: Histograms.h:86
U second(std::pair< T, U > const &p)
std::vector< double > ptBins
Definition: Histograms.h:86
std::vector< double > ntrkBins
Definition: Histograms.h:86
std::vector< TH2F * > hder
Definition: Histograms.h:95
std::vector< TH3F * > hrpt
Definition: Histograms.h:110
std::vector< double > ldeBins
Definition: Histograms.h:86
const char * partName[nParticles]
Definition: Histograms.cc:36
std::vector< TH3F * > helo
Definition: Histograms.h:123
std::vector< TH3F * > hrho
Definition: Histograms.h:135
std::vector< double > ratBins
Definition: Histograms.h:86
std::vector< TH2F * > hsp0
Definition: Histograms.h:111
bool fillNtuples
Definition: Histograms.h:84
std::vector< TH3F * > hfak
Definition: Histograms.h:116
std::vector< double > nhitBins
Definition: Histograms.h:86
std::vector< TTree * > trackTrees
Definition: Histograms.h:75
#define nCharges
Definition: Histograms.cc:16
bool first
Definition: L1TdeRCT.cc:94
int k[5][pyjets_maxn]
bool fillHistograms
Definition: Histograms.h:83
SimTrack_t simTrackValues
Definition: Histograms.h:76
std::vector< TH2F * > hdac
Definition: Histograms.h:106
std::vector< double > etaBins
Definition: Histograms.h:86
std::vector< TH2F * > hsp2
Definition: Histograms.h:113
std::vector< double > rhoBins
Definition: Histograms.h:86
part
Definition: HCALResponse.h:20
const std::pair< int, int > feedDown[nFeedDowns]
Definition: Histograms.cc:60
std::vector< double > metaBins
Definition: Histograms.h:86
std::vector< double > zBins
Definition: Histograms.h:86
RecVzero_t recVzeroValues
Definition: Histograms.h:78
std::vector< TH3F * > hsim
Definition: Histograms.h:98
std::vector< TH3F * > hacc
Definition: Histograms.h:99
std::vector< TH3F * > hima
Definition: Histograms.h:134
std::vector< TH2F * > hsp1
Definition: Histograms.h:112
std::vector< TH3F * > hvpt
Definition: Histograms.h:109
#define constexpr
std::vector< TH3F * > hall
Definition: Histograms.h:104
Definition: DDAxes.h:10
std::vector< TH3F * > hnhi
Definition: Histograms.h:124
virtual void Histograms::Fill ( const reco::Particle::LorentzVector p1,
const reco::Particle::LorentzVector p2 
)
inlinevirtual

Reimplemented in HDelta.

Definition at line 64 of file Histograms.h.

64 {};
virtual void Histograms::Fill ( const reco::Particle::LorentzVector p1,
const reco::Particle::LorentzVector p2,
const int  charge,
const double &  weight = 1. 
)
inlinevirtual

Reimplemented in HMassVSPartProfile, and HMassVSPart.

Definition at line 65 of file Histograms.h.

65 {};
virtual void Histograms::Fill ( const CLHEP::HepLorentzVector &  momentum1,
const CLHEP::HepLorentzVector &  momentum2 
)
inlinevirtual

Reimplemented in HDelta.

Definition at line 66 of file Histograms.h.

66 {};
virtual void Histograms::Fill ( const CLHEP::HepLorentzVector &  momentum1,
const CLHEP::HepLorentzVector &  momentum2,
const int  charge,
const double &  weight = 1. 
)
inlinevirtual

Reimplemented in HMassVSPartProfile, and HMassVSPart.

Definition at line 67 of file Histograms.h.

67 {};
virtual void Histograms::Fill ( const CLHEP::HepLorentzVector &  p1,
const reco::Particle::LorentzVector p2 
)
inlinevirtual

Reimplemented in HDelta.

Definition at line 68 of file Histograms.h.

68 {};
virtual void Histograms::Fill ( const reco::Particle::LorentzVector p4,
const double &  weight = 1. 
)
inlinevirtual

Reimplemented in HLikelihoodVSPart, HPartVSPt, HPartVSPhi, and HPartVSEta.

Definition at line 69 of file Histograms.h.

69 {};
virtual void Histograms::Fill ( const reco::Particle::LorentzVector p4,
const int  charge,
const double &  weight = 1. 
)
inlinevirtual

Reimplemented in HParticle.

Definition at line 73 of file Histograms.h.

73 {};
virtual void Histograms::Fill ( const CLHEP::HepLorentzVector &  momentum,
const int  charge,
const double &  weight = 1. 
)
inlinevirtual

Reimplemented in HParticle.

Definition at line 75 of file Histograms.h.

75 {};
virtual void Histograms::Fill ( const reco::Particle::LorentzVector p4,
const double &  resValue,
const int  charge 
)
inlinevirtual

Reimplemented in HFunctionResolutionVarianceCheck, HFunctionResolution, and HResolutionVSPart.

Definition at line 78 of file Histograms.h.

78 {};
virtual void Histograms::Fill ( const reco::Particle::LorentzVector p4,
const double &  genValue,
const double  recValue,
const int  charge 
)
inlinevirtual

Definition at line 79 of file Histograms.h.

79 {};
virtual void Histograms::Fill ( const CLHEP::HepLorentzVector &  p,
const double &  likeValue 
)
inlinevirtual

Reimplemented in HPartVSPt, HPartVSPhi, and HPartVSEta.

Definition at line 80 of file Histograms.h.

80 {};
virtual void Histograms::Fill ( const unsigned int  number)
inlinevirtual

Reimplemented in HParticle.

Definition at line 81 of file Histograms.h.

81 {};
virtual void Histograms::Fill ( const reco::Particle::LorentzVector recoP1,
const int  charge1,
const reco::Particle::LorentzVector genP1,
const reco::Particle::LorentzVector recoP2,
const int  charge2,
const reco::Particle::LorentzVector genP2,
const double &  recoMass,
const double &  genMass 
)
inlinevirtual

Reimplemented in HMassResolutionVSPart.

Definition at line 82 of file Histograms.h.

86  {};
virtual void Histograms::Fill ( const reco::Particle::LorentzVector recoP1,
const int  charge1,
const reco::Particle::LorentzVector recoP2,
const int  charge2,
const double &  recoMass,
const double &  genMass 
)
inlinevirtual

Reimplemented in HMassResolutionVSPart.

Definition at line 87 of file Histograms.h.

91  {};
virtual void Histograms::Fill ( const reco::Particle::LorentzVector recoP1,
const reco::Particle::LorentzVector genP1,
const reco::Particle::LorentzVector recoP2,
const reco::Particle::LorentzVector genP2 
)
inlinevirtual

Reimplemented in HCovarianceVSParts.

Definition at line 92 of file Histograms.h.

95  {};
virtual void Histograms::Fill ( const double &  x,
const double &  y 
)
inlinevirtual

Reimplemented in HTProfile, HTH1D, and HTH2D.

Definition at line 96 of file Histograms.h.

96 {};
virtual void Histograms::Fill ( const double &  x,
const double &  y,
const double &  a,
const double &  b 
)
inlinevirtual

Reimplemented in HCovarianceVSxy.

Definition at line 97 of file Histograms.h.

97 {};
virtual void Histograms::Fill ( const reco::Particle::LorentzVector p41,
const reco::Particle::LorentzVector p42,
const reco::Particle::LorentzVector p4Res,
const double &  weight = 1. 
)
inlinevirtual

Reimplemented in HMassVSPart.

Definition at line 98 of file Histograms.h.

101  {};
virtual void Histograms::Fill ( const CLHEP::HepLorentzVector &  momentum1,
const CLHEP::HepLorentzVector &  momentum2,
const CLHEP::HepLorentzVector &  momentumRes,
const double &  weight = 1. 
)
inlinevirtual

Reimplemented in HMassVSPart.

Definition at line 102 of file Histograms.h.

105  {};
void Histograms::fillEventInfo ( int  proc,
int  strk,
int  ntrkr 
)

Definition at line 496 of file Histograms.cc.

References alignCSCRings::e, eventInfoValues, fillHistograms, fillNtuples, hder, heve, EventInfo_t::ntrkr, EventInfo_t::proc, proc, EventInfo_t::strk, and trackTrees.

497 {
498  if(fillNtuples)
499  {
500  EventInfo_t e;
501  e.proc = proc;
502  e.strk = strk;
503  e.ntrkr = ntrk;
504 
505  eventInfoValues = e;
506 
507  trackTrees[3]->Fill();
508  }
509 
510  if(fillHistograms)
511  {
512  heve[0]->Fill(ntrk);
513 
514  if(proc == 92 || proc == 93)
515  heve[1]->Fill(ntrk); // hsdx
516 
517  if(proc == 94)
518  heve[2]->Fill(ntrk); // hddx
519 
520  if(!(proc == 92 || proc == 93 || proc == 94))
521  heve[3]->Fill(ntrk); // hndx
522 
523  // For multiplicity, detector response matrix
524  hder[0]->Fill(strk,ntrk);
525  }
526 }
EventInfo_t eventInfoValues
Definition: Histograms.h:79
TrainProcessor *const proc
Definition: MVATrainer.cc:101
std::vector< TH1F * > heve
Definition: Histograms.h:94
std::vector< TH2F * > hder
Definition: Histograms.h:95
bool fillNtuples
Definition: Histograms.h:84
std::vector< TTree * > trackTrees
Definition: Histograms.h:75
bool fillHistograms
Definition: Histograms.h:83
void Histograms::fillRecHistograms ( const RecTrack_t r)

Definition at line 572 of file Histograms.cc.

References ala, any, DeDxDiscriminatorTools::charge(), RecTrack_t::charge, RecTrack_t::etar, RecTrack_t::etas, create_public_lumi_plots::exp, feedDown, fillHistograms, fillNtuples, getCharge(), getParticle(), hall, ham, hap, hdac, hdec, held, helo, hfak, hnhi, hpro, hrpt, hsp0, hsp1, hsp2, hvpt, RecTrack_t::ids, gen::k, RecTrack_t::logde, RecTrack_t::logpr, neg, nFeedDowns, RecTrack_t::nhitr, RecTrack_t::nsim, RecTrack_t::ntrkr, AlCaHLTBitMon_ParallelJobs::p, RecTrack_t::parids, partCharge, pip, pos, RecTrack_t::prim, RecTrack_t::ptr, RecTrack_t::pts, alignCSCRings::r, recTrackValues, edm::second(), trackTrees, and RecTrack_t::zr.

573 {
574  if(fillNtuples)
575  {
576  if(r.prim)
577  {
578  recTrackValues = r;
579  trackTrees[1]->Fill();
580  }
581  }
582 
583  if(fillHistograms)
584  {
585  int charge = getCharge(r.charge);
586  double p = exp(r.logpr);
587 
588  if(r.prim)
589  {
590  hall[charge]->Fill(r.etar, r.ptr, r.ntrkr);
591 
592  if(r.ptr > 0.3) // !!!
593  hdac[charge]->Fill(r.etar, r.zr);
594 
595  if(r.nsim == 0)
596  hfak[charge]->Fill(r.etar, r.ptr, r.ntrkr);
597 
598  if(r.nsim == 1)
599  {
600  int part = getParticle(r.ids);
601  int moth = getParticle(r.parids);
602 
603  if(pip <= part && part <= ala)
604  {
605  hvpt[part]->Fill(r.etas, r.pts, r.ptr ); // value
606  hrpt[part]->Fill(r.etas, r.pts, r.ptr/r.pts); // ratio
607 
608  hsp0[part]->Fill(r.etas, r.pts); // sum p^0
609  hsp1[part]->Fill(r.etas, r.pts, p); // sum p^1
610  hsp2[part]->Fill(r.etas, r.pts, p*p); // sum p^2
611  }
612 
613  for(int k = 0; k < nFeedDowns; k++)
614  if(part == feedDown[k].second) // daughter same
615  {
616  hpro[k]->Fill(r.etar, r.ptr);
617 
618  if((r.parids != 0 && feedDown[k].first == any) ||
619  feedDown[k].first == moth)
620  hdec[k]->Fill(r.etar, r.ptr);
621  }
622 
623  if(partCharge[part] == pos || partCharge[part] == neg)
624  {
625  if(partCharge[part] == pos) part = hap;
626  if(partCharge[part] == neg) part = ham;
627 
628  hvpt[part]->Fill(r.etas, r.pts, r.ptr ); // value
629  hrpt[part]->Fill(r.etas, r.pts, r.ptr/r.pts); // ratio
630 
631  hsp0[part]->Fill(r.etas, r.pts); // sum p^0
632  hsp1[part]->Fill(r.etas, r.pts, p); // sum p^1
633  hsp2[part]->Fill(r.etas, r.pts, p*p); // sum p^2
634 
635  for(int k = 0; k < nFeedDowns; k++)
636  if(part == feedDown[k].second) // daughter same
637  {
638  hpro[k]->Fill(r.etar, r.ptr);
639 
640  if((r.parids != 0 && feedDown[k].first == any) ||
641  feedDown[k].first == moth)
642  hdec[k]->Fill(r.etar, r.ptr);
643  }
644  }
645  }
646 
647  // All hits
648  helo[charge]->Fill(r.etar, r.ptr, r.logde);
649  hnhi[charge]->Fill(r.etar, r.ptr, r.nhitr);
650  held[charge]->Fill(r.logpr, r.logde);
651 
652  // Strip hits
653 /*
654  selo[charge]->Fill(r.etar, r.ptr, r.logde_strip);
655  snhi[charge]->Fill(r.etar, r.ptr, r.nhitr_strip);
656  seld[charge]->Fill(r.logpr, r.logde_strip);
657 */
658  }
659  }
660 }
std::vector< TH2F * > hdec
Definition: Histograms.h:120
float pts
Definition: Histograms.h:42
#define nFeedDowns
Definition: Histograms.cc:59
std::vector< TH2F * > held
Definition: Histograms.h:125
int charge
Definition: Histograms.h:28
std::vector< TH2F * > hpro
Definition: Histograms.h:119
RecTrack_t recTrackValues
Definition: Histograms.h:77
double charge(const std::vector< uint8_t > &Ampls)
float logpr
Definition: Histograms.h:33
U second(std::pair< T, U > const &p)
std::vector< TH3F * > hrpt
Definition: Histograms.h:110
const int partCharge[nParticles]
Definition: Histograms.cc:47
std::vector< TH3F * > helo
Definition: Histograms.h:123
std::vector< TH2F * > hsp0
Definition: Histograms.h:111
bool fillNtuples
Definition: Histograms.h:84
std::vector< TH3F * > hfak
Definition: Histograms.h:116
std::vector< TTree * > trackTrees
Definition: Histograms.h:75
int parids
Definition: Histograms.h:40
int getCharge(int charge)
Definition: Histograms.cc:145
int k[5][pyjets_maxn]
bool fillHistograms
Definition: Histograms.h:83
std::vector< TH2F * > hdac
Definition: Histograms.h:106
std::vector< TH2F * > hsp2
Definition: Histograms.h:113
float zr
Definition: Histograms.h:32
float ptr
Definition: Histograms.h:30
part
Definition: HCALResponse.h:20
const std::pair< int, int > feedDown[nFeedDowns]
Definition: Histograms.cc:60
float logde
Definition: Histograms.h:34
float etas
Definition: Histograms.h:41
int getParticle(int id)
Definition: Histograms.cc:103
std::vector< TH2F * > hsp1
Definition: Histograms.h:112
float etar
Definition: Histograms.h:29
std::vector< TH3F * > hvpt
Definition: Histograms.h:109
std::vector< TH3F * > hall
Definition: Histograms.h:104
std::vector< TH3F * > hnhi
Definition: Histograms.h:124
void Histograms::fillSimHistograms ( const SimTrack_t s)

Definition at line 529 of file Histograms.cc.

References SimTrack_t::acc, ala, SimTrack_t::etas, fillHistograms, fillNtuples, getParticle(), hacc, ham, hap, hmul, href, hsim, SimTrack_t::ids, neg, SimTrack_t::nrec, SimTrack_t::ntrkr, partCharge, pip, pos, SimTrack_t::prim, SimTrack_t::pts, alignCSCRings::s, simTrackValues, and trackTrees.

530 {
531  if(fillNtuples)
532  {
533  if(s.prim)
534  {
535  simTrackValues = s;
536  trackTrees[0]->Fill();
537  }
538  }
539 
540  if(fillHistograms)
541  {
542  int part = getParticle(s.ids);
543 
544  if(pip <= part && part <= ala && s.prim)
545  {
546  hsim[part]->Fill(s.etas, s.pts, s.ntrkr);
547  if(s.acc) hacc[part]->Fill(s.etas, s.pts, s.ntrkr);
548 if(s.acc)
549 {
550  if(s.nrec > 0) href[part]->Fill(s.etas, s.pts, s.ntrkr);
551  if(s.nrec > 1) hmul[part]->Fill(s.etas, s.pts, s.ntrkr);
552 }
553 
554  if(partCharge[part] == pos || partCharge[part] == neg)
555  {
556  if(partCharge[part] == pos) part = hap;
557  if(partCharge[part] == neg) part = ham;
558 
559  hsim[part]->Fill(s.etas, s.pts, s.ntrkr);
560  if(s.acc) hacc[part]->Fill(s.etas, s.pts, s.ntrkr);
561 if(s.acc)
562 {
563  if(s.nrec > 0) href[part]->Fill(s.etas, s.pts, s.ntrkr);
564  if(s.nrec > 1) hmul[part]->Fill(s.etas, s.pts, s.ntrkr);
565 }
566  }
567  }
568  }
569 }
std::vector< TH3F * > hmul
Definition: Histograms.h:101
float etas
Definition: Histograms.h:16
float pts
Definition: Histograms.h:17
std::vector< TH3F * > href
Definition: Histograms.h:100
const int partCharge[nParticles]
Definition: Histograms.cc:47
bool fillNtuples
Definition: Histograms.h:84
std::vector< TTree * > trackTrees
Definition: Histograms.h:75
bool fillHistograms
Definition: Histograms.h:83
SimTrack_t simTrackValues
Definition: Histograms.h:76
part
Definition: HCALResponse.h:20
int getParticle(int id)
Definition: Histograms.cc:103
std::vector< TH3F * > hsim
Definition: Histograms.h:98
std::vector< TH3F * > hacc
Definition: Histograms.h:99
void Histograms::fillVzeroHistograms ( const RecVzero_t r,
int  part 
)

Definition at line 663 of file Histograms.cc.

References RecVzero_t::etar, fillHistograms, fillNtuples, hima, RecVzero_t::ima, RecVzero_t::ptr, recVzeroValues, trackTrees, and findQualityFiles::v.

664 {
665  if(fillNtuples)
666  {
667  recVzeroValues = v;
668  trackTrees[2]->Fill();
669  }
670 
671  if(fillHistograms)
672  hima[part]->Fill(v.etar, v.ptr, v.ima);
673 }
bool fillNtuples
Definition: Histograms.h:84
std::vector< TTree * > trackTrees
Definition: Histograms.h:75
bool fillHistograms
Definition: Histograms.h:83
part
Definition: HCALResponse.h:20
RecVzero_t recVzeroValues
Definition: Histograms.h:78
std::vector< TH3F * > hima
Definition: Histograms.h:134
virtual double Histograms::Get ( const reco::Particle::LorentzVector recoP1,
const TString &  covarianceName 
)
inlinevirtual

Reimplemented in HCovarianceVSParts.

Definition at line 108 of file Histograms.h.

108 { return 0.; };
int Histograms::getCharge ( int  charge)
private

Definition at line 145 of file Histograms.cc.

References neg, and pos.

Referenced by fillRecHistograms().

146 {
147  if(charge > 0) return pos;
148  else return neg;
149 }
double charge(const std::vector< uint8_t > &Ampls)
virtual TString Histograms::GetName ( )
inlinevirtual

Definition at line 117 of file Histograms.h.

References name_.

117  {
118  return name_;
119  }
TString name_
Definition: Histograms.h:123
int Histograms::getParticle ( int  id)
private

Definition at line 103 of file Histograms.cc.

References ala, asi, elm, elp, gam, k0s, kam, kap, lam, pim, pip, prm, prp, and sip.

Referenced by fillRecHistograms(), and fillSimHistograms().

104 {
105  switch(id)
106  {
107  case 211 : return pip; break;
108  case -211 : return pim; break;
109 
110  case 321 : return kap; break;
111  case -321 : return kam; break;
112 
113  case 2212 : return prp; break;
114  case -2212 : return prm; break;
115 
116  case 11 : return elp; break;
117  case -11 : return elm; break;
118 
119  // SimG4Core/Notification/src/G4TrackToParticleID.cc
120  // "deuteron" = -100; 1p 1n
121  // "triton" = -101; 1p 2n
122  // "alpha" = -102; 2p 2n
123  // "He3" = -104; 2p 1n
124 
125  case 22 : return gam; break;
126  case 310 : return k0s; break;
127  case 3122 : return lam; break;
128  case -3122 : return ala; break;
129 
130 /*
131  case 113 : return rho; break;
132  case 313 : return kst; break;
133  case -313 : return aks; break;
134  case 333 : return phi; break;
135 */
136 
137  case 3222 : return sip; break;
138  case -3222 : return asi; break;
139 
140  default : return -1; break;
141  }
142 }
virtual void Histograms::SetWeight ( double  weight)
inlinevirtual

Definition at line 113 of file Histograms.h.

References theWeight_, and histoStyle::weight.

113  {
114  theWeight_ = weight;
115  }
int weight
Definition: histoStyle.py:50
double theWeight_
Definition: Histograms.h:122
virtual void Histograms::Write ( )
pure virtual
void Histograms::writeHistograms ( )

Definition at line 676 of file Histograms.cc.

References fillHistograms, fillNtuples, h, hacc, hall, hdac, hdec, hder, held, helo, heve, hfak, hima, histoFile, hmul, hnhi, hpro, href, hrho, hrpt, hsim, hsp0, hsp1, hsp2, hvpt, ntupleFile, lumiQTWidget::t, and trackTrees.

677 {
678  typedef std::vector<TH3F *>::const_iterator H3I;
679  typedef std::vector<TH2F *>::const_iterator H2I;
680  typedef std::vector<TH1F *>::const_iterator H1I;
681  typedef std::vector<TTree *>::const_iterator TI;
682 
683  if(fillHistograms)
684  {
685  histoFile->cd();
686  for(H1I h = heve.begin(); h!= heve.end(); h++) (*h)->Write();
687  for(H2I h = hder.begin(); h!= hder.end(); h++) (*h)->Write();
688 
689  for(H3I h = hsim.begin(); h!= hsim.end(); h++) (*h)->Write();
690  for(H3I h = hacc.begin(); h!= hacc.end(); h++) (*h)->Write();
691  for(H3I h = href.begin(); h!= href.end(); h++) (*h)->Write();
692  for(H3I h = hmul.begin(); h!= hmul.end(); h++) (*h)->Write();
693 
694  for(H3I h = hall.begin(); h!= hall.end(); h++) (*h)->Write();
695  for(H2I h = hdac.begin(); h!= hdac.end(); h++) (*h)->Write();
696 
697  for(H3I h = hvpt.begin(); h!= hvpt.end(); h++) (*h)->Write();
698  for(H3I h = hrpt.begin(); h!= hrpt.end(); h++) (*h)->Write();
699 
700  for(H2I h = hsp0.begin(); h!= hsp0.end(); h++) (*h)->Write();
701  for(H2I h = hsp1.begin(); h!= hsp1.end(); h++) (*h)->Write();
702  for(H2I h = hsp2.begin(); h!= hsp2.end(); h++) (*h)->Write();
703 
704  for(H3I h = hfak.begin(); h!= hfak.end(); h++) (*h)->Write();
705 
706  for(H2I h = hpro.begin(); h!= hpro.end(); h++) (*h)->Write();
707  for(H2I h = hdec.begin(); h!= hdec.end(); h++) (*h)->Write();
708 
709  for(H3I h = helo.begin(); h!= helo.end(); h++) (*h)->Write();
710  for(H3I h = hnhi.begin(); h!= hnhi.end(); h++) (*h)->Write();
711  for(H2I h = held.begin(); h!= held.end(); h++) (*h)->Write();
712 
713  for(H3I h = hima.begin(); h!= hima.end(); h++) (*h)->Write();
714  for(H3I h = hrho.begin(); h!= hrho.end(); h++) (*h)->Write();
715  histoFile->Close();
716  }
717 
718  if(fillNtuples)
719  {
720  ntupleFile->cd();
721  for(TI t = trackTrees.begin(); t!= trackTrees.end(); t++) (*t)->Write();
722  ntupleFile->Close();
723  }
724 }
std::vector< TH2F * > hdec
Definition: Histograms.h:120
std::vector< TH3F * > hmul
Definition: Histograms.h:101
std::vector< TH1F * > heve
Definition: Histograms.h:94
std::vector< TH2F * > held
Definition: Histograms.h:125
std::vector< TH2F * > hpro
Definition: Histograms.h:119
std::vector< TH3F * > href
Definition: Histograms.h:100
std::vector< TH2F * > hder
Definition: Histograms.h:95
std::vector< TH3F * > hrpt
Definition: Histograms.h:110
std::vector< TH3F * > helo
Definition: Histograms.h:123
std::vector< TH3F * > hrho
Definition: Histograms.h:135
std::vector< TH2F * > hsp0
Definition: Histograms.h:111
bool fillNtuples
Definition: Histograms.h:84
std::vector< TH3F * > hfak
Definition: Histograms.h:116
std::vector< TTree * > trackTrees
Definition: Histograms.h:75
TFile * ntupleFile
Definition: Histograms.h:82
bool fillHistograms
Definition: Histograms.h:83
std::vector< TH2F * > hdac
Definition: Histograms.h:106
std::vector< TH2F * > hsp2
Definition: Histograms.h:113
The Signals That Services Can Subscribe To This is based on ActivityRegistry h
Helper function to determine trigger accepts.
Definition: Activities.doc:4
TFile * histoFile
Definition: Histograms.h:81
std::vector< TH3F * > hsim
Definition: Histograms.h:98
std::vector< TH3F * > hacc
Definition: Histograms.h:99
std::vector< TH3F * > hima
Definition: Histograms.h:134
std::vector< TH2F * > hsp1
Definition: Histograms.h:112
std::vector< TH3F * > hvpt
Definition: Histograms.h:109
std::vector< TH3F * > hall
Definition: Histograms.h:104
std::vector< TH3F * > hnhi
Definition: Histograms.h:124

Member Data Documentation

std::vector<double> Histograms::etaBins
private

Definition at line 86 of file Histograms.h.

Referenced by declareHistograms().

EventInfo_t Histograms::eventInfoValues
private

Definition at line 79 of file Histograms.h.

Referenced by declareHistograms(), and fillEventInfo().

bool Histograms::fillHistograms
private
bool Histograms::fillNtuples
private
std::vector<TH3F *> Histograms::hacc
private

Definition at line 99 of file Histograms.h.

Referenced by declareHistograms(), fillSimHistograms(), and writeHistograms().

std::vector<TH3F *> Histograms::hall
private

Definition at line 104 of file Histograms.h.

Referenced by declareHistograms(), fillRecHistograms(), and writeHistograms().

std::vector<TH2F *> Histograms::hdac
private

Definition at line 106 of file Histograms.h.

Referenced by declareHistograms(), fillRecHistograms(), and writeHistograms().

std::vector<TH2F *> Histograms::hdec
private

Definition at line 120 of file Histograms.h.

Referenced by declareHistograms(), fillRecHistograms(), and writeHistograms().

std::vector<TH2F *> Histograms::hder
private

Definition at line 95 of file Histograms.h.

Referenced by declareHistograms(), fillEventInfo(), and writeHistograms().

std::vector<TH2F *> Histograms::held
private

Definition at line 125 of file Histograms.h.

Referenced by declareHistograms(), fillRecHistograms(), and writeHistograms().

std::vector<TH3F *> Histograms::helo
private

Definition at line 123 of file Histograms.h.

Referenced by declareHistograms(), fillRecHistograms(), and writeHistograms().

std::vector<TH1F *> Histograms::heve
private

Definition at line 94 of file Histograms.h.

Referenced by declareHistograms(), fillEventInfo(), and writeHistograms().

std::vector<TH3F *> Histograms::hfak
private

Definition at line 116 of file Histograms.h.

Referenced by declareHistograms(), fillRecHistograms(), and writeHistograms().

std::vector<TH3F *> Histograms::hima
private

Definition at line 134 of file Histograms.h.

Referenced by declareHistograms(), fillVzeroHistograms(), and writeHistograms().

TDirectory* Histograms::histoDir_
protected
TFile* Histograms::histoFile
private

Definition at line 81 of file Histograms.h.

Referenced by Histograms(), and writeHistograms().

std::vector<TH3F *> Histograms::hmul
private

Definition at line 101 of file Histograms.h.

Referenced by declareHistograms(), fillSimHistograms(), and writeHistograms().

std::vector<TH3F *> Histograms::hnhi
private

Definition at line 124 of file Histograms.h.

Referenced by declareHistograms(), fillRecHistograms(), and writeHistograms().

std::vector<TH2F *> Histograms::hpro
private

Definition at line 119 of file Histograms.h.

Referenced by declareHistograms(), fillRecHistograms(), and writeHistograms().

std::vector<TH3F *> Histograms::href
private

Definition at line 100 of file Histograms.h.

Referenced by declareHistograms(), fillSimHistograms(), and writeHistograms().

std::vector<TH3F *> Histograms::hrho
private

Definition at line 135 of file Histograms.h.

Referenced by declareHistograms(), and writeHistograms().

std::vector<TH3F *> Histograms::hrpt
private

Definition at line 110 of file Histograms.h.

Referenced by declareHistograms(), fillRecHistograms(), and writeHistograms().

std::vector<TH3F *> Histograms::hsim
private

Definition at line 98 of file Histograms.h.

Referenced by declareHistograms(), fillSimHistograms(), and writeHistograms().

std::vector<TH2F *> Histograms::hsp0
private

Definition at line 111 of file Histograms.h.

Referenced by declareHistograms(), fillRecHistograms(), and writeHistograms().

std::vector<TH2F *> Histograms::hsp1
private

Definition at line 112 of file Histograms.h.

Referenced by declareHistograms(), fillRecHistograms(), and writeHistograms().

std::vector<TH2F *> Histograms::hsp2
private

Definition at line 113 of file Histograms.h.

Referenced by declareHistograms(), fillRecHistograms(), and writeHistograms().

std::vector<TH3F *> Histograms::hvpt
private

Definition at line 109 of file Histograms.h.

Referenced by declareHistograms(), fillRecHistograms(), and writeHistograms().

std::vector<double> Histograms::ldeBins
private

Definition at line 86 of file Histograms.h.

Referenced by declareHistograms().

std::vector<double> Histograms::lpBins
private

Definition at line 86 of file Histograms.h.

Referenced by declareHistograms().

std::vector<double> Histograms::metaBins
private

Definition at line 86 of file Histograms.h.

Referenced by declareHistograms().

TString Histograms::name_
protected
std::vector<double> Histograms::nhitBins
private

Definition at line 86 of file Histograms.h.

Referenced by declareHistograms().

std::vector<double> Histograms::ntrkBins
private

Definition at line 86 of file Histograms.h.

Referenced by declareHistograms().

TFile* Histograms::ntupleFile
private

Definition at line 82 of file Histograms.h.

Referenced by Histograms(), and writeHistograms().

TFile* Histograms::outputFile_
protected

Definition at line 124 of file Histograms.h.

Referenced by HFunctionResolution::Write().

std::vector<double> Histograms::ptBins
private

Definition at line 86 of file Histograms.h.

Referenced by declareHistograms().

std::vector<double> Histograms::ratBins
private

Definition at line 86 of file Histograms.h.

Referenced by declareHistograms().

RecTrack_t Histograms::recTrackValues
private

Definition at line 77 of file Histograms.h.

Referenced by declareHistograms(), and fillRecHistograms().

RecVzero_t Histograms::recVzeroValues
private

Definition at line 78 of file Histograms.h.

Referenced by declareHistograms(), and fillVzeroHistograms().

std::vector<double> Histograms::rhoBins
private

Definition at line 86 of file Histograms.h.

Referenced by declareHistograms().

SimTrack_t Histograms::simTrackValues
private

Definition at line 76 of file Histograms.h.

Referenced by declareHistograms(), and fillSimHistograms().

double Histograms::theWeight_
protected

Definition at line 122 of file Histograms.h.

Referenced by SetWeight().

std::vector<TTree *> Histograms::trackTrees
private
std::vector<double> Histograms::zBins
private

Definition at line 86 of file Histograms.h.

Referenced by declareHistograms().