CMS 3D CMS Logo

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

#include <HcalTestAnalysis.h>

Inheritance diagram for HcalTestAnalysis:
SimWatcher Observer< const BeginOfJob * > Observer< const BeginOfRun * > Observer< const BeginOfEvent * > Observer< const EndOfEvent * > Observer< const G4Step * >

Public Member Functions

 HcalTestAnalysis (const edm::ParameterSet &p)
 
virtual ~HcalTestAnalysis ()
 
- Public Member Functions inherited from SimWatcher
 SimWatcher ()
 
virtual ~SimWatcher ()
 
- Public Member Functions inherited from Observer< const BeginOfJob * >
 Observer ()
 
void slotForUpdate (const BeginOfJob *iT)
 
virtual ~Observer ()
 
- Public Member Functions inherited from Observer< const BeginOfRun * >
 Observer ()
 
void slotForUpdate (const BeginOfRun *iT)
 
virtual ~Observer ()
 
- Public Member Functions inherited from Observer< const BeginOfEvent * >
 Observer ()
 
void slotForUpdate (const BeginOfEvent *iT)
 
virtual ~Observer ()
 
- Public Member Functions inherited from Observer< const EndOfEvent * >
 Observer ()
 
void slotForUpdate (const EndOfEvent *iT)
 
virtual ~Observer ()
 
- Public Member Functions inherited from Observer< const G4Step * >
 Observer ()
 
void slotForUpdate (const G4Step *iT)
 
virtual ~Observer ()
 

Private Member Functions

void fill (const EndOfEvent *ev)
 
void layerAnalysis ()
 
std::vector< int > layerGrouping (int)
 
void qieAnalysis ()
 
double timeOfFlight (int det, int layer, double eta)
 
std::vector< int > towersToAdd (int centre, int nadd)
 
void update (const BeginOfJob *run)
 This routine will be called when the appropriate signal arrives. More...
 
void update (const BeginOfRun *run)
 This routine will be called when the appropriate signal arrives. More...
 
void update (const BeginOfEvent *evt)
 This routine will be called when the appropriate signal arrives. More...
 
void update (const EndOfEvent *evt)
 This routine will be called when the appropriate signal arrives. More...
 
void update (const G4Step *step)
 This routine will be called when the appropriate signal arrives. More...
 

Private Attributes

int addTower
 
std::vector< CaloHitcaloHitCache
 
int centralTower
 
unsigned int count
 
double edepEB
 
double edepEE
 
double edepHB
 
double edepHE
 
double edepHO
 
double edepl [20]
 
double eta0
 
std::string fileName
 
std::vector< int > group_
 
double mudist [20]
 
HcalQiemyqie
 
std::vector< std::string > names
 
int nGroup
 
int nTower
 
HcalNumberingFromDDDnumberingFromDDD
 
HcalTestNumberingSchemeorg
 
double phi0
 
std::vector< int > tower_
 
HcalTestHistoClasstuples
 
std::auto_ptr
< HcalTestHistoManager
tuplesManager
 

Additional Inherited Members

Detailed Description

Definition at line 30 of file HcalTestAnalysis.h.

Constructor & Destructor Documentation

HcalTestAnalysis::HcalTestAnalysis ( const edm::ParameterSet p)

Definition at line 31 of file HcalTestAnalysis.cc.

References addTower, centralTower, count, eta0, fileName, edm::ParameterSet::getParameter(), group_, i, layerGrouping(), myqie, names, nGroup, nTower, phi0, AlCaHLTBitMon_QueryRunRegistry::string, tower_, and towersToAdd().

31  :
32  myqie(0), addTower(3), tuplesManager(0), tuples(0), numberingFromDDD(0), org(0) {
33 
34  edm::ParameterSet m_Anal = p.getParameter<edm::ParameterSet>("HcalTestAnalysis");
35  eta0 = m_Anal.getParameter<double>("Eta0");
36  phi0 = m_Anal.getParameter<double>("Phi0");
37  int laygroup = m_Anal.getParameter<int>("LayerGrouping");
38  centralTower = m_Anal.getParameter<int>("CentralTower");
39  names = m_Anal.getParameter<std::vector<std::string> >("Names");
40  fileName = m_Anal.getParameter<std::string>("FileName");
41 
42  edm::LogInfo("HcalSim") << "HcalTestAnalysis:: Initialised as observer of "
43  << "begin/end events and of G4step";
44 
45  count = 0;
46  group_ = layerGrouping(laygroup);
47  nGroup = 0;
48  for (unsigned int i=0; i<group_.size(); i++)
49  if (group_[i]>nGroup) nGroup = group_[i];
50  tower_ = towersToAdd(centralTower, addTower);
51  nTower = tower_.size()/2;
52 
53  edm::LogInfo("HcalSim") << "HcalTestAnalysis:: initialised for " << nGroup
54  << " Longitudinal groups and " << nTower
55  << " towers";
56 
57  // qie
58  myqie = new HcalQie(p);
59 }
T getParameter(std::string const &) const
int i
Definition: DBlmapReader.cc:9
HcalNumberingFromDDD * numberingFromDDD
std::vector< int > layerGrouping(int)
unsigned int count
std::auto_ptr< HcalTestHistoManager > tuplesManager
std::vector< std::string > names
HcalTestNumberingScheme * org
std::vector< int > towersToAdd(int centre, int nadd)
std::vector< int > tower_
HcalTestHistoClass * tuples
std::string fileName
std::vector< int > group_
HcalTestAnalysis::~HcalTestAnalysis ( )
virtual

Definition at line 61 of file HcalTestAnalysis.cc.

References count, myqie, numberingFromDDD, org, and tuples.

61  {
62  edm::LogInfo("HcalSim") << "HcalTestAnalysis: --------> Total number of "
63  << "selected entries : " << count;
64  edm::LogInfo("HcalSim") << "HcalTestAnalysis: Pointers:: HcalQie " << myqie
65  << ", HistoClass " << tuples << ", Numbering Scheme "
66  << org << " and FromDDD " << numberingFromDDD;
67  if (myqie) {
68  edm::LogInfo("HcalSim") << "HcalTestAnalysis: Delete HcalQie";
69  delete myqie;
70  }
71  if (numberingFromDDD) {
72  edm::LogInfo("HcalSim") << "HcalTestAnalysis: Delete HcalNumberingFromDDD";
73  delete numberingFromDDD;
74  }
75 }
HcalNumberingFromDDD * numberingFromDDD
unsigned int count
HcalTestNumberingScheme * org
HcalTestHistoClass * tuples

Member Function Documentation

void HcalTestAnalysis::fill ( const EndOfEvent ev)
private

Definition at line 338 of file HcalTestAnalysis.cc.

References caloHitCache, alignCSCRings::e, eta(), CaloG4Hit::getEnergyDeposit(), CaloG4Hit::getPosition(), CaloG4Hit::getTimeSlice(), HcalTestNumberingScheme::getUnitID(), CaloG4Hit::getUnitID(), HcalEndcap, HcalForward, j, create_public_lumi_plots::log, LogDebug, names, numberingFromDDD, org, HcalTestNumberingScheme::packHcalIndex(), phi, AlCaHLTBitMon_QueryRunRegistry::string, funct::tan(), theta(), cond::rpcobgas::time, timeOfFlight(), HcalNumberingFromDDD::unitID(), and HcalTestNumberingScheme::unpackHcalIndex().

Referenced by update().

338  {
339 
340  LogDebug("HcalSim") << "HcalTestAnalysis: Fill event "
341  << (*evt)()->GetEventID();
342 
343  // access to the G4 hit collections
344  G4HCofThisEvent* allHC = (*evt)()->GetHCofThisEvent();
345 
346  int nhc = 0, neb = 0, nef = 0, j = 0;
347  caloHitCache.erase (caloHitCache.begin(), caloHitCache.end());
348 
349  // Hcal
350  int HCHCid = G4SDManager::GetSDMpointer()->GetCollectionID(names[0]);
351  CaloG4HitCollection* theHCHC = (CaloG4HitCollection*) allHC->GetHC(HCHCid);
352  LogDebug("HcalSim") << "HcalTestAnalysis :: Hit Collection for " << names[0]
353  << " of ID " << HCHCid << " is obtained at " << theHCHC;
354  if (HCHCid >= 0 && theHCHC > 0) {
355  for (j = 0; j < theHCHC->entries(); j++) {
356 
357  CaloG4Hit* aHit = (*theHCHC)[j];
358 
359  double e = aHit->getEnergyDeposit()/GeV;
360  double time = aHit->getTimeSlice();
361 
362  math::XYZPoint pos = aHit->getPosition();
363  double theta = pos.theta();
364  double eta = -log(tan(theta * 0.5));
365  double phi = pos.phi();
366 
367  uint32_t unitID = aHit->getUnitID();
368  int subdet, zside, layer, etaIndex, phiIndex, lay;
369  org->unpackHcalIndex(unitID,subdet,zside,layer,etaIndex,phiIndex,lay);
370  double jitter = time-timeOfFlight(subdet,lay,eta);
371  if (jitter<0) jitter = 0;
372  CaloHit hit(subdet,lay,e,eta,phi,jitter,unitID);
373  caloHitCache.push_back(hit);
374  nhc++;
375 
376  std::string det = "HB";
377  if (subdet == static_cast<int>(HcalForward)) {
378  det = "HF";
379  } else if (subdet == static_cast<int>(HcalEndcap)) {
380  if (etaIndex <= 20) {
381  det = "HES";
382  } else {
383  det = "HED";
384  }
385  }
386 
387  LogDebug("HcalSim") << "HcalTest: " << det << " layer " << std::setw(2)
388  << layer << " time " << std::setw(6) << time
389  << " theta " << std::setw(8) << theta << " eta "
390  << std::setw(8) << eta << " phi " << std::setw(8)
391  << phi << " e " << std::setw(8) << e;
392  }
393  }
394  LogDebug("HcalSim") << "HcalTestAnalysis::HCAL hits : " << nhc << "\n";
395 
396  // EB
397  int EBHCid = G4SDManager::GetSDMpointer()->GetCollectionID(names[1]);
398  CaloG4HitCollection* theEBHC = (CaloG4HitCollection*) allHC->GetHC(EBHCid);
399  LogDebug("HcalSim") << "HcalTestAnalysis :: Hit Collection for " << names[1]
400  << " of ID " << EBHCid << " is obtained at " << theEBHC;
401  if (EBHCid >= 0 && theEBHC > 0) {
402  for (j = 0; j < theEBHC->entries(); j++) {
403 
404  CaloG4Hit* aHit = (*theEBHC)[j];
405 
406  double e = aHit->getEnergyDeposit()/GeV;
407  double time = aHit->getTimeSlice();
408  std::string det = "EB";
409 
410  math::XYZPoint pos = aHit->getPosition();
411  double theta = pos.theta();
412  double eta = -log(tan(theta/2.));
413  double phi = pos.phi();
414 
416  uint32_t unitID = org->getUnitID(id);
417  int subdet, zside, layer, ieta, iphi, lay;
418  org->unpackHcalIndex(unitID,subdet,zside,layer,ieta,iphi,lay);
419  subdet = 10;
420  layer = 0;
421  unitID = org->packHcalIndex(subdet,zside,layer,ieta,iphi,lay);
422  CaloHit hit(subdet,lay,e,eta,phi,time,unitID);
423  caloHitCache.push_back(hit);
424  neb++;
425  LogDebug("HcalSim") << "HcalTest: " << det << " layer " << std::setw(2)
426  << layer << " time " << std::setw(6) << time
427  << " theta " << std::setw(8) << theta << " eta "
428  << std::setw(8) << eta << " phi " << std::setw(8)
429  << phi << " e " << std::setw(8) << e;
430  }
431  }
432  LogDebug("HcalSim") << "HcalTestAnalysis::EB hits : " << neb << "\n";
433 
434  // EE
435  int EEHCid = G4SDManager::GetSDMpointer()->GetCollectionID(names[2]);
436  CaloG4HitCollection* theEEHC = (CaloG4HitCollection*) allHC->GetHC(EEHCid);
437  LogDebug("HcalSim") << "HcalTestAnalysis :: Hit Collection for " << names[2]
438  << " of ID " << EEHCid << " is obtained at " << theEEHC;
439  if (EEHCid >= 0 && theEEHC > 0) {
440  for (j = 0; j < theEEHC->entries(); j++) {
441 
442  CaloG4Hit* aHit = (*theEEHC)[j];
443 
444  double e = aHit->getEnergyDeposit()/GeV;
445  double time = aHit->getTimeSlice();
446  std::string det = "EE";
447 
448  math::XYZPoint pos = aHit->getPosition();
449  double theta = pos.theta();
450  double eta = -log(tan(theta/2.));
451  double phi = pos.phi();
452 
454  uint32_t unitID = org->getUnitID(id);
455  int subdet, zside, layer, ieta, iphi, lay;
456  org->unpackHcalIndex(unitID,subdet,zside,layer,ieta,iphi,lay);
457  subdet = 11;
458  layer = 0;
459  unitID = org->packHcalIndex(subdet,zside,layer,ieta,iphi,lay);
460  CaloHit hit(subdet,lay,e,eta,phi,time,unitID);
461  caloHitCache.push_back(hit);
462  nef++;
463  LogDebug("HcalSim") << "HcalTest: " << det << " layer " << std::setw(2)
464  << layer << " time " << std::setw(6) << time
465  << " theta " << std::setw(8) << theta << " eta "
466  << std::setw(8) << eta << " phi " << std::setw(8)
467  << phi << " e " << std::setw(8) << e;
468  }
469  }
470  LogDebug("HcalSim") << "HcalTestAnalysis::EE hits : " << nef << "\n";
471 }
#define LogDebug(id)
math::XYZPoint getPosition() const
Definition: CaloG4Hit.h:56
HcalNumberingFromDDD * numberingFromDDD
virtual uint32_t getUnitID(const HcalNumberingFromDDD::HcalID &id)
Geom::Theta< T > theta() const
std::vector< std::string > names
T eta() const
HcalTestNumberingScheme * org
double timeOfFlight(int det, int layer, double eta)
static uint32_t packHcalIndex(int det, int z, int depth, int eta, int phi, int lay)
Tan< T >::type tan(const T &t)
Definition: Tan.h:22
int j
Definition: DBlmapReader.cc:9
XYZPointD XYZPoint
point in space with cartesian internal representation
Definition: Point3D.h:12
G4THitsCollection< CaloG4Hit > CaloG4HitCollection
std::vector< CaloHit > caloHitCache
static void unpackHcalIndex(const uint32_t &idx, int &det, int &z, int &depth, int &eta, int &phi, int &lay)
double getTimeSlice() const
Definition: CaloG4Hit.h:70
uint32_t getUnitID() const
Definition: CaloG4Hit.h:69
HcalID unitID(int det, const CLHEP::Hep3Vector &pos, int depth, int lay=-1) const
double getEnergyDeposit() const
Definition: CaloG4Hit.h:81
Definition: DDAxes.h:10
void HcalTestAnalysis::layerAnalysis ( )
private

Definition at line 594 of file HcalTestAnalysis.cc.

References edepEB, edepEE, edepHB, edepHE, edepHO, edepl, HcalTestHistoClass::fillLayers(), i, LogDebug, mudist, and tuples.

Referenced by update().

594  {
595 
596  int i = 0;
597  LogDebug("HcalSim") << "\n ===>>> HcalTestAnalysis: Energy deposit in MeV "
598  << "\n at EB : " << std::setw(6) << edepEB/MeV
599  << "\n at EE : " << std::setw(6) << edepEE/MeV
600  << "\n at HB : " << std::setw(6) << edepHB/MeV
601  << "\n at HE : " << std::setw(6) << edepHE/MeV
602  << "\n at HO : " << std::setw(6) << edepHO/MeV
603  << "\n ---- HcalTestAnalysis: Energy deposit in Layers";
604  for (i = 0; i < 20; i++)
605  LogDebug("HcalSim") << " Layer " << std::setw(2) << i << " E "
606  << std::setw(8) << edepl[i]/MeV << " MeV";
607 
609 }
#define LogDebug(id)
int i
Definition: DBlmapReader.cc:9
void fillLayers(double el[], double ho, double hbhe, double muxy[])
HcalTestHistoClass * tuples
std::vector< int > HcalTestAnalysis::layerGrouping ( int  group)
private

Definition at line 77 of file HcalTestAnalysis.cc.

References i, and groupFilesInBlocks::temp.

Referenced by HcalTestAnalysis().

77  {
78 
79  std::vector<int> temp(19);
80  if (group <= 1) {
81  int grp[19] = {1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 2, 2};
82  for (int i=0; i<19; i++)
83  temp[i] = grp[i];
84  } else if (group == 2) {
85  int grp[19] = {1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19};
86  for (int i=0; i<19; i++)
87  temp[i] = grp[i];
88  } else if (group == 3) {
89  int grp[19] = {1, 1, 2, 2, 2, 3, 3, 3, 4, 4, 4, 5, 5, 5, 6, 6, 6, 7, 7};
90  for (int i=0; i<19; i++)
91  temp[i] = grp[i];
92  } else if (group == 4) {
93  int grp[19] = {1, 1, 1, 2, 2, 3, 3, 4, 4, 5, 5, 5, 6, 6, 6, 6, 6, 7, 7};
94  for (int i=0; i<19; i++)
95  temp[i] = grp[i];
96  } else {
97  int grp[19] = {1, 1, 2, 3, 3, 4, 4, 5, 5, 5, 6, 6, 6, 6, 6, 6, 6, 7, 7};
98  for (int i=0; i<19; i++)
99  temp[i] = grp[i];
100  }
101 
102  edm::LogInfo("HcalSim") << "HcalTestAnalysis:: Layer Grouping ";
103  for (int i=0; i<19; i++)
104  edm::LogInfo("HcalSim") << "HcalTestAnalysis: Group[" << i << "] = "
105  << temp[i];
106  return temp;
107 }
int i
Definition: DBlmapReader.cc:9
void HcalTestAnalysis::qieAnalysis ( )
private

Definition at line 474 of file HcalTestAnalysis.cc.

References addTower, caloHitCache, centralTower, CaloHit::det(), CaloHit::e(), eta0, HcalTestHistoClass::fillHits(), HcalTestHistoClass::fillQie(), HcalQie::getCode(), HcalQie::getEnergy(), HcalTestNumberingScheme::getUnitID(), group_, HcalBarrel, HcalEndcap, i, CaloHit::id(), customizeTrackingMonitorSeedNumber::idx, CaloHit::layer(), LogDebug, myqie, nGroup, nt, nTower, numberingFromDDD, org, phi0, AlCaHLTBitMon_QueryRunRegistry::string, tower_, tuples, HcalNumberingFromDDD::unitID(), and HcalTestNumberingScheme::unpackHcalIndex().

Referenced by update().

474  {
475 
476  //Fill tuple with hit information
477  int hittot = caloHitCache.size();
479 
480  //Get the index of the central tower
482  uint32_t unitID = org->getUnitID(id);
483  int subdet, zside, layer, ieta, iphi, lay;
484  org->unpackHcalIndex(unitID,subdet,zside,layer,ieta,iphi,lay);
485  int laymax = 0;
486  std::string det = "Unknown";
487  if (subdet == static_cast<int>(HcalBarrel)) {
488  laymax = 4; det = "HB";
489  } else if (subdet == static_cast<int>(HcalEndcap)) {
490  laymax = 2; det = "HES";
491  }
492  LogDebug("HcalSim") << "HcalTestAnalysis::Qie: " << det << " Eta " << ieta
493  << " Phi " << iphi << " Laymax " << laymax << " Hits "
494  << hittot;
495 
496  if (laymax>0 && hittot>0) {
497  std::vector<CaloHit> hits(hittot);
498  std::vector<double> eqielay(80,0.0), esimlay(80,0.0), esimtot(4,0.0);
499  std::vector<double> eqietow(200,0.0), esimtow(200,0.0), eqietot(4,0.0);
500  int etac = (centralTower/100)%100;
501  int phic = (centralTower%100);
502 
503  for (int layr=0; layr<nGroup; layr++) {
504  /*
505  int layx, layy=20;
506  for (int i=0; i<20; i++)
507  if (group_[i] == layr+1 && i < layy) layy = i+1;
508  if (subdet == static_cast<int>(HcalBarrel)) {
509  if (layy < 2) layx = 0;
510  else if (layy < 17) layx = 1;
511  else if (layy == 17) layx = 2;
512  else layx = 3;
513  } else {
514  if (layy < 2) layx = 0;
515  else layx = 1;
516  }
517  */
518  for (int it=0; it<nTower; it++) {
519  int nhit = 0;
520  double esim = 0;
521  for (int k1 = 0; k1 < hittot; k1++) {
522  CaloHit hit = caloHitCache[k1];
523  int subdetc = hit.det();
524  int layer = hit.layer();
525  int group = 0;
526  if (layer > 0 && layer < 20) group = group_[layer];
527  if (subdetc == subdet && group == layr+1) {
528  int zsidec, ietac, iphic, idx;
529  unitID = hit.id();
530  org->unpackHcalIndex(unitID,subdetc,zsidec,layer,ietac,iphic,lay);
531  if (etac > 0 && phic > 0) {
532  idx = ietac*100 + iphic;
533  } else if (etac > 0) {
534  idx = ietac*100;
535  } else if (phic > 0) {
536  idx = iphic;
537  } else {
538  idx = 0;
539  }
540  if (zsidec==zside && idx==tower_[it]) {
541  hits[nhit] = hit;
542  LogDebug("HcalSim") << "HcalTest: Hit " << nhit << " " << hit;
543  nhit++;
544  esim += hit.e();
545  }
546  }
547  }
548 
549  std::vector<int> cd = myqie->getCode(nhit,hits);
550  double eqie = myqie->getEnergy(cd);
551 
552  LogDebug("HcalSim") << "HcalTestAnalysis::Qie: Energy in layer "
553  << layr << " Sim " << esim << " After QIE " <<eqie;
554  for (int i=0; i<4; i++) {
555  if (tower_[nTower+it] <= i) {
556  esimtot[i] += esim;
557  eqietot[i] += eqie;
558  esimlay[20*i+layr] += esim;
559  eqielay[20*i+layr] += eqie;
560  esimtow[50*i+it] += esim;
561  eqietow[50*i+it] += eqie;
562  }
563  }
564  }
565  }
566  LogDebug("HcalSim") << "HcalTestAnalysis::Qie: Total energy " << esimtot[3]
567  << " (SimHit) " << eqietot[3] << " (After QIE)";
568 
569  std::vector<double> latphi(10);
570  int nt = 2*addTower + 1;
571  for (int it=0; it<nt; it++)
572  latphi[it] = it-addTower;
573  for (int i=0; i<4; i++) {
574  double scals=1, scalq=1;
575  std::vector<double> latfs(10,0.), latfq(10,0.), longs(20), longq(20);
576  if (esimtot[i]>0) scals = 1./esimtot[i];
577  if (eqietot[i]>0) scalq = 1./eqietot[i];
578  for (int it=0; it<nTower; it++) {
579  int phib = it%nt;
580  latfs[phib] += scals*esimtow[50*i+it];
581  latfq[phib] += scalq*eqietow[50*i+it];
582  }
583  for (int layr=0; layr<=nGroup; layr++) {
584  longs[layr] = scals*esimlay[20*i+layr];
585  longq[layr] = scalq*eqielay[20*i+layr];
586  }
587  tuples->fillQie(i,esimtot[i],eqietot[i],nGroup,longs,longq,
588  nt,latphi,latfs,latfq);
589  }
590  }
591 }
#define LogDebug(id)
void fillQie(int id, double esimtot, double eqietot, int nGroup, const std::vector< double > &longs, const std::vector< double > &longq, int nTower, const std::vector< double > &latphi, const std::vector< double > &latfs, const std::vector< double > &latfq)
int i
Definition: DBlmapReader.cc:9
HcalNumberingFromDDD * numberingFromDDD
int det() const
Definition: CaloHit.h:22
virtual uint32_t getUnitID(const HcalNumberingFromDDD::HcalID &id)
void fillHits(std::vector< CaloHit > &)
HcalTestNumberingScheme * org
uint32_t id() const
Definition: CaloHit.h:28
std::vector< int > tower_
double getEnergy(const std::vector< int > &)
Definition: HcalQie.cc:403
int layer() const
Definition: CaloHit.h:23
HcalTestHistoClass * tuples
std::vector< int > getCode(int, const std::vector< CaloHit > &)
Definition: HcalQie.cc:299
int nt
Definition: AMPTWrapper.h:32
tuple idx
DEBUGGING if hasattr(process,&quot;trackMonIterativeTracking2012&quot;): print &quot;trackMonIterativeTracking2012 D...
double e() const
Definition: CaloHit.h:24
std::vector< CaloHit > caloHitCache
static void unpackHcalIndex(const uint32_t &idx, int &det, int &z, int &depth, int &eta, int &phi, int &lay)
HcalID unitID(int det, const CLHEP::Hep3Vector &pos, int depth, int lay=-1) const
std::vector< int > group_
double HcalTestAnalysis::timeOfFlight ( int  det,
int  layer,
double  eta 
)
private

Definition at line 613 of file HcalTestAnalysis.cc.

References funct::cos(), create_public_lumi_plots::exp, HcalBarrel, LogDebug, funct::sin(), theta(), and tmp.

Referenced by fill().

613  {
614 
615  double theta = 2.0*atan(exp(-eta));
616  double dist = 0.;
617  if (det == static_cast<int>(HcalBarrel)) {
618  const double rLay[19] = {
619  1836.0, 1902.0, 1962.0, 2022.0, 2082.0, 2142.0, 2202.0, 2262.0, 2322.0,
620  2382.0, 2448.0, 2514.0, 2580.0, 2646.0, 2712.0, 2776.0, 2862.5, 3847.0,
621  4052.0};
622  if (layer>0 && layer<20) dist += rLay[layer-1]*mm/sin(theta);
623  } else {
624  const double zLay[19] = {
625  4034.0, 4032.0, 4123.0, 4210.0, 4297.0, 4384.0, 4471.0, 4558.0, 4645.0,
626  4732.0, 4819.0, 4906.0, 4993.0, 5080.0, 5167.0, 5254.0, 5341.0, 5428.0,
627  5515.0};
628  if (layer>0 && layer<20) dist += zLay[layer-1]*mm/cos(theta);
629  }
630  double tmp = dist/c_light/ns;
631  LogDebug("HcalSim") << "HcalTestAnalysis::timeOfFlight " << tmp
632  << " for det/lay " << det << " " << layer
633  << " eta/theta " << eta << " " << theta/deg << " dist "
634  << dist;
635  return tmp;
636 }
#define LogDebug(id)
Sin< T >::type sin(const T &t)
Definition: Sin.h:22
Geom::Theta< T > theta() const
T eta() const
Cos< T >::type cos(const T &t)
Definition: Cos.h:22
std::vector< std::vector< double > > tmp
Definition: MVATrainer.cc:100
std::vector< int > HcalTestAnalysis::towersToAdd ( int  centre,
int  nadd 
)
private

Definition at line 109 of file HcalTestAnalysis.cc.

References funct::abs(), eta(), i, max(), phi, phimax, phimin, and groupFilesInBlocks::temp.

Referenced by HcalTestAnalysis().

109  {
110 
111  int etac = (centre/100)%100;
112  int phic = (centre%100);
113  int etamin, etamax, phimin, phimax;
114  if (etac>0) {
115  etamin = etac-nadd;
116  etamax = etac+nadd;
117  } else {
118  etamin = etac;
119  etamax = etac;
120  }
121  if (phic>0) {
122  phimin = phic-nadd;
123  phimax = phic+nadd;
124  } else {
125  phimin = phic;
126  phimax = phic;
127  }
128 
129  int nbuf, kount=0;
130  nbuf = (etamax-etamin+1)*(phimax-phimin+1);
131  std::vector<int> temp(2*nbuf);
132  for (int eta=etamin; eta<=etamax; eta++) {
133  for (int phi=phimin; phi<=phimax; phi++) {
134  temp[kount] = (eta*100 + phi);
135  temp[kount+nbuf] = std::max(abs(eta-etac),abs(phi-phic));
136  kount++;
137  }
138  }
139 
140  edm::LogInfo("HcalSim") << "HcalTestAnalysis:: Towers to be considered for"
141  << " Central " << centre << " and " << nadd
142  << " on either side";
143  for (int i=0; i<nbuf; i++)
144  edm::LogInfo("HcalSim") << "HcalTestAnalysis: Tower[" << std::setw(3) << i
145  << "] " << temp[i] << " " << temp[nbuf+i];
146  return temp;
147 }
int i
Definition: DBlmapReader.cc:9
T eta() const
const T & max(const T &a, const T &b)
Abs< T >::type abs(const T &t)
Definition: Abs.h:22
Definition: DDAxes.h:10
void HcalTestAnalysis::update ( const BeginOfJob )
privatevirtual

This routine will be called when the appropriate signal arrives.

Implements Observer< const BeginOfJob * >.

Definition at line 150 of file HcalTestAnalysis.cc.

References fileName, names, numberingFromDDD, org, and tuplesManager.

Referenced by progressbar.ProgressBar::__next__(), relval_steps.Matrix::__setitem__(), relval_steps.Steps::__setitem__(), Vispa.Gui.VispaWidget.VispaWidget::autosize(), Vispa.Views.LineDecayView.LineDecayContainer::createObject(), Vispa.Views.LineDecayView.LineDecayContainer::deselectAllObjects(), Vispa.Gui.VispaWidgetOwner.VispaWidgetOwner::deselectAllWidgets(), Vispa.Gui.VispaWidget.VispaWidget::enableAutosizing(), progressbar.ProgressBar::finish(), Vispa.Gui.MenuWidget.MenuWidget::leaveEvent(), Vispa.Gui.VispaWidgetOwner.VispaWidgetOwner::mouseMoveEvent(), Vispa.Gui.MenuWidget.MenuWidget::mouseMoveEvent(), Vispa.Views.LineDecayView.LineDecayContainer::mouseMoveEvent(), Vispa.Gui.VispaWidgetOwner.VispaWidgetOwner::mouseReleaseEvent(), Vispa.Views.LineDecayView.LineDecayContainer::objectMoved(), relval_steps.Steps::overwrite(), Vispa.Views.LineDecayView.LineDecayContainer::removeObject(), Vispa.Gui.ConnectableWidget.ConnectableWidget::removePorts(), Vispa.Gui.FindDialog.FindDialog::reset(), Vispa.Gui.PortConnection.PointToPointConnection::select(), Vispa.Gui.VispaWidget.VispaWidget::select(), Vispa.Views.LineDecayView.LineDecayContainer::select(), Vispa.Gui.VispaWidget.VispaWidget::setText(), Vispa.Gui.VispaWidget.VispaWidget::setTitle(), Vispa.Gui.ZoomableWidget.ZoomableWidget::setZoom(), Vispa.Views.LineDecayView.LineDecayContainer::setZoom(), and Vispa.Gui.PortConnection.PointToPointConnection::updateConnection().

150  {
151 
152  // Numbering From DDD
154  (*job)()->get<IdealGeometryRecord>().get(pDD);
155  edm::LogInfo("HcalSim") << "HcalTestAnalysis:: Initialise "
156  << "HcalNumberingFromDDD for " << names[0];
157  numberingFromDDD = new HcalNumberingFromDDD(names[0], (*pDD));
158 
159  // Ntuples
161 
162  // Numbering scheme
163  org = new HcalTestNumberingScheme(false);
164 
165 }
HcalNumberingFromDDD * numberingFromDDD
std::auto_ptr< HcalTestHistoManager > tuplesManager
std::vector< std::string > names
HcalTestNumberingScheme * org
std::string fileName
void HcalTestAnalysis::update ( const BeginOfRun )
privatevirtual

This routine will be called when the appropriate signal arrives.

Implements Observer< const BeginOfRun * >.

Definition at line 168 of file HcalTestAnalysis.cc.

References HcalNumberingFromDDD::cell(), centralTower, HcalCellType::HcalCell::eta, eta(), eta0, HcalBarrel, HcalEndcap, HcalForward, python.cmstools::loop(), names, numberingFromDDD, HcalCellType::HcalCell::ok, org, phi, HcalCellType::HcalCell::phi, phi0, sd, HCalSD::setNumberingScheme(), AlCaHLTBitMon_QueryRunRegistry::string, and tmp.

Referenced by progressbar.ProgressBar::__next__(), relval_steps.Matrix::__setitem__(), relval_steps.Steps::__setitem__(), Vispa.Gui.VispaWidget.VispaWidget::autosize(), Vispa.Views.LineDecayView.LineDecayContainer::createObject(), Vispa.Views.LineDecayView.LineDecayContainer::deselectAllObjects(), Vispa.Gui.VispaWidgetOwner.VispaWidgetOwner::deselectAllWidgets(), Vispa.Gui.VispaWidget.VispaWidget::enableAutosizing(), progressbar.ProgressBar::finish(), Vispa.Gui.MenuWidget.MenuWidget::leaveEvent(), Vispa.Gui.VispaWidgetOwner.VispaWidgetOwner::mouseMoveEvent(), Vispa.Gui.MenuWidget.MenuWidget::mouseMoveEvent(), Vispa.Views.LineDecayView.LineDecayContainer::mouseMoveEvent(), Vispa.Gui.VispaWidgetOwner.VispaWidgetOwner::mouseReleaseEvent(), Vispa.Views.LineDecayView.LineDecayContainer::objectMoved(), relval_steps.Steps::overwrite(), Vispa.Views.LineDecayView.LineDecayContainer::removeObject(), Vispa.Gui.ConnectableWidget.ConnectableWidget::removePorts(), Vispa.Gui.FindDialog.FindDialog::reset(), Vispa.Gui.PortConnection.PointToPointConnection::select(), Vispa.Gui.VispaWidget.VispaWidget::select(), Vispa.Views.LineDecayView.LineDecayContainer::select(), Vispa.Gui.VispaWidget.VispaWidget::setText(), Vispa.Gui.VispaWidget.VispaWidget::setTitle(), Vispa.Gui.ZoomableWidget.ZoomableWidget::setZoom(), Vispa.Views.LineDecayView.LineDecayContainer::setZoom(), and Vispa.Gui.PortConnection.PointToPointConnection::updateConnection().

168  {
169 
170  int irun = (*run)()->GetRunID();
171  edm::LogInfo("HcalSim") << "HcalTestAnalysis:: Begin of Run = " << irun;
172 
173  bool loop = true, eta = true, phi = true;
174  int etac = (centralTower/100)%100;
175  if (etac == 0) {
176  etac = 1;
177  eta = false;
178  }
179  int phic = (centralTower%100);
180  if (phic == 0) {
181  phic = 1;
182  phi = false;
183  }
184  int idet = static_cast<int>(HcalBarrel);
185  while (loop) {
186  HcalCellType::HcalCell tmp = numberingFromDDD->cell(idet,1,1,etac,phic);
187  if (tmp.ok) {
188  if (eta) eta0 = tmp.eta;
189  if (phi) phi0 = tmp.phi;
190  loop = false;
191  } else if (idet == static_cast<int>(HcalBarrel)) {
192  idet = static_cast<int>(HcalEndcap);
193  } else if (idet == static_cast<int>(HcalEndcap)) {
194  idet = static_cast<int>(HcalForward);
195  } else {
196  loop = false;
197  }
198  }
199 
200  edm::LogInfo("HcalSim") << "HcalTestAnalysis:: Central Tower "
201  << centralTower << " corresponds to eta0 = " << eta0
202  << " phi0 = " << phi0;
203 
204  std::string sdname = names[0];
205  G4SDManager* sd = G4SDManager::GetSDMpointerIfExist();
206  if (sd != 0) {
207  G4VSensitiveDetector* aSD = sd->FindSensitiveDetector(sdname);
208  if (aSD==0) {
209  edm::LogWarning("HcalSim") << "HcalTestAnalysis::beginOfRun: No SD with "
210  << "name " << sdname << " in this Setup";
211  } else {
212  HCalSD* theCaloSD = dynamic_cast<HCalSD*>(aSD);
213  edm::LogInfo("HcalSim") << "HcalTestAnalysis::beginOfRun: Finds SD with "
214  << "name " << theCaloSD->GetName()
215  << " in this Setup";
216  if (org) {
217  theCaloSD->setNumberingScheme(org);
218  edm::LogInfo("HcalSim") << "HcalTestAnalysis::beginOfRun: set a new "
219  << "numbering scheme";
220  }
221  }
222  } else {
223  edm::LogWarning("HcalSim") << "HcalTestAnalysis::beginOfRun: Could not get"
224  << " SD Manager!";
225  }
226 
227 }
HcalNumberingFromDDD * numberingFromDDD
std::vector< std::string > names
T eta() const
HcalTestNumberingScheme * org
void setNumberingScheme(HcalNumberingScheme *)
Definition: HCalSD.cc:601
Definition: HCalSD.h:33
double sd
std::vector< std::vector< double > > tmp
Definition: MVATrainer.cc:100
HcalCellType::HcalCell cell(int det, int zside, int depth, int etaR, int iphi, bool corr=true) const
Definition: DDAxes.h:10
void HcalTestAnalysis::update ( const BeginOfEvent )
privatevirtual

This routine will be called when the appropriate signal arrives.

Implements Observer< const BeginOfEvent * >.

Definition at line 230 of file HcalTestAnalysis.cc.

References edepEB, edepEE, edepHB, edepHE, edepHO, edepl, i, LogDebug, mudist, HcalTestHistoClass::setCounters(), and tuples.

Referenced by progressbar.ProgressBar::__next__(), relval_steps.Matrix::__setitem__(), relval_steps.Steps::__setitem__(), Vispa.Gui.VispaWidget.VispaWidget::autosize(), Vispa.Views.LineDecayView.LineDecayContainer::createObject(), Vispa.Views.LineDecayView.LineDecayContainer::deselectAllObjects(), Vispa.Gui.VispaWidgetOwner.VispaWidgetOwner::deselectAllWidgets(), Vispa.Gui.VispaWidget.VispaWidget::enableAutosizing(), progressbar.ProgressBar::finish(), Vispa.Gui.MenuWidget.MenuWidget::leaveEvent(), Vispa.Gui.VispaWidgetOwner.VispaWidgetOwner::mouseMoveEvent(), Vispa.Gui.MenuWidget.MenuWidget::mouseMoveEvent(), Vispa.Views.LineDecayView.LineDecayContainer::mouseMoveEvent(), Vispa.Gui.VispaWidgetOwner.VispaWidgetOwner::mouseReleaseEvent(), Vispa.Views.LineDecayView.LineDecayContainer::objectMoved(), relval_steps.Steps::overwrite(), Vispa.Views.LineDecayView.LineDecayContainer::removeObject(), Vispa.Gui.ConnectableWidget.ConnectableWidget::removePorts(), Vispa.Gui.FindDialog.FindDialog::reset(), Vispa.Gui.PortConnection.PointToPointConnection::select(), Vispa.Gui.VispaWidget.VispaWidget::select(), Vispa.Views.LineDecayView.LineDecayContainer::select(), Vispa.Gui.VispaWidget.VispaWidget::setText(), Vispa.Gui.VispaWidget.VispaWidget::setTitle(), Vispa.Gui.ZoomableWidget.ZoomableWidget::setZoom(), Vispa.Views.LineDecayView.LineDecayContainer::setZoom(), and Vispa.Gui.PortConnection.PointToPointConnection::updateConnection().

230  {
231 
232  // create tuple object
233  tuples = new HcalTestHistoClass();
234  // Reset counters
235  tuples->setCounters();
236 
237  int i = 0;
238  edepEB = edepEE = edepHB = edepHE = edepHO = 0.;
239  for (i = 0; i < 20; i++) edepl[i] = 0.;
240  for (i = 0; i < 20; i++) mudist[i] = -1.;
241 
242  int iev = (*evt)()->GetEventID();
243  LogDebug("HcalSim") <<"HcalTestAnalysis: Begin of event = " << iev;
244 }
#define LogDebug(id)
int i
Definition: DBlmapReader.cc:9
HcalTestHistoClass * tuples
void HcalTestAnalysis::update ( const EndOfEvent )
privatevirtual

This routine will be called when the appropriate signal arrives.

Implements Observer< const EndOfEvent * >.

Definition at line 315 of file HcalTestAnalysis.cc.

References count, fill(), layerAnalysis(), LogDebug, qieAnalysis(), tuples, and tuplesManager.

Referenced by progressbar.ProgressBar::__next__(), relval_steps.Matrix::__setitem__(), relval_steps.Steps::__setitem__(), Vispa.Gui.VispaWidget.VispaWidget::autosize(), Vispa.Views.LineDecayView.LineDecayContainer::createObject(), Vispa.Views.LineDecayView.LineDecayContainer::deselectAllObjects(), Vispa.Gui.VispaWidgetOwner.VispaWidgetOwner::deselectAllWidgets(), Vispa.Gui.VispaWidget.VispaWidget::enableAutosizing(), progressbar.ProgressBar::finish(), Vispa.Gui.MenuWidget.MenuWidget::leaveEvent(), Vispa.Gui.VispaWidgetOwner.VispaWidgetOwner::mouseMoveEvent(), Vispa.Gui.MenuWidget.MenuWidget::mouseMoveEvent(), Vispa.Views.LineDecayView.LineDecayContainer::mouseMoveEvent(), Vispa.Gui.VispaWidgetOwner.VispaWidgetOwner::mouseReleaseEvent(), Vispa.Views.LineDecayView.LineDecayContainer::objectMoved(), relval_steps.Steps::overwrite(), Vispa.Views.LineDecayView.LineDecayContainer::removeObject(), Vispa.Gui.ConnectableWidget.ConnectableWidget::removePorts(), Vispa.Gui.FindDialog.FindDialog::reset(), Vispa.Gui.PortConnection.PointToPointConnection::select(), Vispa.Gui.VispaWidget.VispaWidget::select(), Vispa.Views.LineDecayView.LineDecayContainer::select(), Vispa.Gui.VispaWidget.VispaWidget::setText(), Vispa.Gui.VispaWidget.VispaWidget::setTitle(), Vispa.Gui.ZoomableWidget.ZoomableWidget::setZoom(), Vispa.Views.LineDecayView.LineDecayContainer::setZoom(), and Vispa.Gui.PortConnection.PointToPointConnection::updateConnection().

315  {
316 
317  count++;
318  // Fill event input
319  fill(evt);
320  LogDebug("HcalSim") << "HcalTestAnalysis:: --- after Fill";
321 
322  // Qie analysis
323  qieAnalysis();
324  LogDebug("HcalSim") << "HcalTestAnalysis:: --- after QieAnalysis";
325 
326  // Layers tuples filling
327  layerAnalysis();
328  LogDebug("HcalSim") << "HcalTestAnalysis:: --- after LayerAnalysis";
329 
330  // Writing the data to the Tree
331  tuplesManager->fillTree(tuples); // (no need to delete it...)
332  tuples = 0; // but avoid to reuse it...
333  LogDebug("HcalSim") << "HcalTestAnalysis:: --- after fillTree";
334 
335 }
#define LogDebug(id)
unsigned int count
std::auto_ptr< HcalTestHistoManager > tuplesManager
void fill(const EndOfEvent *ev)
HcalTestHistoClass * tuples
void HcalTestAnalysis::update ( const G4Step *  )
privatevirtual

This routine will be called when the appropriate signal arrives.

Implements Observer< const G4Step * >.

Definition at line 247 of file HcalTestAnalysis.cc.

References edepEB, edepEE, edepHB, edepHE, edepHO, edepl, eta(), eta0, create_public_lumi_plots::log, LogDebug, mudist, mergeVDriftHistosByStation::name, NULL, phi, phi0, mathSSE::sqrt(), funct::tan(), and theta().

Referenced by progressbar.ProgressBar::__next__(), relval_steps.Matrix::__setitem__(), relval_steps.Steps::__setitem__(), Vispa.Gui.VispaWidget.VispaWidget::autosize(), Vispa.Views.LineDecayView.LineDecayContainer::createObject(), Vispa.Views.LineDecayView.LineDecayContainer::deselectAllObjects(), Vispa.Gui.VispaWidgetOwner.VispaWidgetOwner::deselectAllWidgets(), Vispa.Gui.VispaWidget.VispaWidget::enableAutosizing(), progressbar.ProgressBar::finish(), Vispa.Gui.MenuWidget.MenuWidget::leaveEvent(), Vispa.Gui.VispaWidgetOwner.VispaWidgetOwner::mouseMoveEvent(), Vispa.Gui.MenuWidget.MenuWidget::mouseMoveEvent(), Vispa.Views.LineDecayView.LineDecayContainer::mouseMoveEvent(), Vispa.Gui.VispaWidgetOwner.VispaWidgetOwner::mouseReleaseEvent(), Vispa.Views.LineDecayView.LineDecayContainer::objectMoved(), relval_steps.Steps::overwrite(), Vispa.Views.LineDecayView.LineDecayContainer::removeObject(), Vispa.Gui.ConnectableWidget.ConnectableWidget::removePorts(), Vispa.Gui.FindDialog.FindDialog::reset(), Vispa.Gui.PortConnection.PointToPointConnection::select(), Vispa.Gui.VispaWidget.VispaWidget::select(), Vispa.Views.LineDecayView.LineDecayContainer::select(), Vispa.Gui.VispaWidget.VispaWidget::setText(), Vispa.Gui.VispaWidget.VispaWidget::setTitle(), Vispa.Gui.ZoomableWidget.ZoomableWidget::setZoom(), Vispa.Views.LineDecayView.LineDecayContainer::setZoom(), and Vispa.Gui.PortConnection.PointToPointConnection::updateConnection().

247  {
248 
249  if (aStep != NULL) {
250  G4VPhysicalVolume* curPV = aStep->GetPreStepPoint()->GetPhysicalVolume();
251  G4String name = curPV->GetName();
252  name.assign(name,0,3);
253  double edeposit = aStep->GetTotalEnergyDeposit();
254  int layer=-1;
255  if (name == "EBR") {
256  edepEB += edeposit;
257  } else if (name == "EFR") {
258  edepEE += edeposit;
259  } else if (name == "HBS") {
260  layer = (curPV->GetCopyNo()/10)%100;
261  if (layer >= 0 && layer < 17) {
262  edepHB += edeposit;
263  } else {
264  edm::LogWarning("HcalSim") << "HcalTestAnalysis::Error in HB "
265  << curPV->GetName() << curPV->GetCopyNo();
266  layer = -1;
267  }
268  } else if (name == "HES") {
269  layer = (curPV->GetCopyNo()/10)%100;
270  if (layer >= 0 && layer < 19) {
271  edepHE += edeposit;
272  } else {
273  edm::LogWarning("HcalSim") << "HcalTestAnalysis::Error in HE "
274  << curPV->GetName() << curPV->GetCopyNo();
275  layer = -1;
276  }
277  } else if (name == "HTS") {
278  layer = (curPV->GetCopyNo()/10)%100;
279  if (layer >= 17 && layer < 20) {
280  edepHO += edeposit;
281  } else {
282  edm::LogWarning("HcalSim") << "HcalTestAnalysis::Error in HO "
283  << curPV->GetName() << curPV->GetCopyNo();
284  layer = -1;
285  }
286  }
287  if (layer >= 0 && layer < 20) {
288  edepl[layer] += edeposit;
289 
290  // Calculate the distance if it is a muon
291  G4String part = aStep->GetTrack()->GetDefinition()->GetParticleName();
292  if ((part == "mu-" || part == "mu+") && mudist[layer] < 0) {
293  math::XYZPoint pos(aStep->GetPreStepPoint()->GetPosition().x(),
294  aStep->GetPreStepPoint()->GetPosition().y(),
295  aStep->GetPreStepPoint()->GetPosition().z());
296  double theta = pos.theta();
297  double eta = -log(tan(theta * 0.5));
298  double phi = pos.phi();
299  double dist = sqrt ((eta-eta0)*(eta-eta0) + (phi-phi0)*(phi-phi0));
300  mudist[layer] = dist*std::sqrt(pos.perp2());
301  }
302  }
303 
304  if (layer >= 0 && layer < 20) {
305  LogDebug("HcalSim") << "HcalTestAnalysis:: G4Step: " << name << " Layer "
306  << std::setw(3) << layer << " Edep " << std::setw(6)
307  << edeposit/MeV << " MeV";
308  }
309  } else {
310  edm::LogInfo("HcalSim") << "HcalTestAnalysis:: G4Step: Null Step";
311  }
312 }
#define LogDebug(id)
Geom::Theta< T > theta() const
#define NULL
Definition: scimark2.h:8
T eta() const
T sqrt(T t)
Definition: SSEVec.h:48
Tan< T >::type tan(const T &t)
Definition: Tan.h:22
XYZPointD XYZPoint
point in space with cartesian internal representation
Definition: Point3D.h:12
part
Definition: HCALResponse.h:20
Definition: DDAxes.h:10

Member Data Documentation

int HcalTestAnalysis::addTower
private

Definition at line 64 of file HcalTestAnalysis.h.

Referenced by HcalTestAnalysis(), and qieAnalysis().

std::vector<CaloHit> HcalTestAnalysis::caloHitCache
private

Definition at line 75 of file HcalTestAnalysis.h.

Referenced by fill(), and qieAnalysis().

int HcalTestAnalysis::centralTower
private

Definition at line 82 of file HcalTestAnalysis.h.

Referenced by HcalTestAnalysis(), qieAnalysis(), and update().

unsigned int HcalTestAnalysis::count
private

Definition at line 85 of file HcalTestAnalysis.h.

Referenced by HcalTestAnalysis(), update(), and ~HcalTestAnalysis().

double HcalTestAnalysis::edepEB
private

Definition at line 86 of file HcalTestAnalysis.h.

Referenced by layerAnalysis(), and update().

double HcalTestAnalysis::edepEE
private

Definition at line 86 of file HcalTestAnalysis.h.

Referenced by layerAnalysis(), and update().

double HcalTestAnalysis::edepHB
private

Definition at line 86 of file HcalTestAnalysis.h.

Referenced by layerAnalysis(), and update().

double HcalTestAnalysis::edepHE
private

Definition at line 86 of file HcalTestAnalysis.h.

Referenced by layerAnalysis(), and update().

double HcalTestAnalysis::edepHO
private

Definition at line 86 of file HcalTestAnalysis.h.

Referenced by layerAnalysis(), and update().

double HcalTestAnalysis::edepl[20]
private

Definition at line 87 of file HcalTestAnalysis.h.

Referenced by layerAnalysis(), and update().

double HcalTestAnalysis::eta0
private

Definition at line 81 of file HcalTestAnalysis.h.

Referenced by HcalTestAnalysis(), qieAnalysis(), and update().

std::string HcalTestAnalysis::fileName
private

Definition at line 60 of file HcalTestAnalysis.h.

Referenced by HcalTestAnalysis(), and update().

std::vector<int> HcalTestAnalysis::group_
private

Definition at line 76 of file HcalTestAnalysis.h.

Referenced by HcalTestAnalysis(), and qieAnalysis().

double HcalTestAnalysis::mudist[20]
private

Definition at line 88 of file HcalTestAnalysis.h.

Referenced by layerAnalysis(), and update().

HcalQie* HcalTestAnalysis::myqie
private

Definition at line 63 of file HcalTestAnalysis.h.

Referenced by HcalTestAnalysis(), qieAnalysis(), and ~HcalTestAnalysis().

std::vector<std::string> HcalTestAnalysis::names
private

Definition at line 80 of file HcalTestAnalysis.h.

Referenced by fill(), HcalTestAnalysis(), and update().

int HcalTestAnalysis::nGroup
private

Definition at line 77 of file HcalTestAnalysis.h.

Referenced by HcalTestAnalysis(), and qieAnalysis().

int HcalTestAnalysis::nTower
private

Definition at line 77 of file HcalTestAnalysis.h.

Referenced by HcalTestAnalysis(), and qieAnalysis().

HcalNumberingFromDDD* HcalTestAnalysis::numberingFromDDD
private

Definition at line 71 of file HcalTestAnalysis.h.

Referenced by fill(), qieAnalysis(), update(), and ~HcalTestAnalysis().

HcalTestNumberingScheme* HcalTestAnalysis::org
private

Definition at line 72 of file HcalTestAnalysis.h.

Referenced by fill(), qieAnalysis(), update(), and ~HcalTestAnalysis().

double HcalTestAnalysis::phi0
private

Definition at line 81 of file HcalTestAnalysis.h.

Referenced by HcalTestAnalysis(), qieAnalysis(), and update().

std::vector<int> HcalTestAnalysis::tower_
private

Definition at line 76 of file HcalTestAnalysis.h.

Referenced by HcalTestAnalysis(), and qieAnalysis().

HcalTestHistoClass* HcalTestAnalysis::tuples
private

Definition at line 68 of file HcalTestAnalysis.h.

Referenced by layerAnalysis(), qieAnalysis(), update(), and ~HcalTestAnalysis().

std::auto_ptr<HcalTestHistoManager> HcalTestAnalysis::tuplesManager
private

Definition at line 67 of file HcalTestAnalysis.h.

Referenced by update().