CMS 3D CMS Logo

List of all members | Public Member Functions | Private Member Functions | Private Attributes
ZdcTestAnalysis Class Reference

#include <ZdcTestAnalysis.h>

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

Public Member Functions

 ZdcTestAnalysis (const edm::ParameterSet &p)
 
 ~ZdcTestAnalysis () override
 
- Public Member Functions inherited from SimWatcher
const SimWatcheroperator= (const SimWatcher &)=delete
 
 SimWatcher ()
 
 SimWatcher (const SimWatcher &)=delete
 
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 EndOfRun * >
 Observer ()
 
void slotForUpdate (const EndOfRun * 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 finish ()
 
void update (const BeginOfEvent *evt) override
 This routine will be called when the appropriate signal arrives. More...
 
void update (const BeginOfJob *run) override
 This routine will be called when the appropriate signal arrives. More...
 
void update (const BeginOfRun *run) override
 This routine will be called when the appropriate signal arrives. More...
 
void update (const EndOfEvent *evt) override
 This routine will be called when the appropriate signal arrives. More...
 
void update (const EndOfRun *run) override
 This routine will be called when the appropriate signal arrives. More...
 
void update (const G4Step *step) override
 This routine will be called when the appropriate signal arrives. More...
 

Private Attributes

int doNTzdcevent
 
int doNTzdcstep
 
int eventIndex
 
std::string eventNtFileName
 
int stepIndex
 
std::string stepNtFileName
 
ZdcNumberingSchemetheZdcNumScheme
 
int verbosity
 
Float_t zdceventarray [16]
 
TNtuple * zdceventntuple
 
TFile * zdcOutputEventFile
 
TFile * zdcOutputStepFile
 
Float_t zdcsteparray [18]
 
TNtuple * zdcstepntuple
 

Additional Inherited Members

Detailed Description

Definition at line 63 of file ZdcTestAnalysis.h.

Constructor & Destructor Documentation

◆ ZdcTestAnalysis()

ZdcTestAnalysis::ZdcTestAnalysis ( const edm::ParameterSet p)

Definition at line 54 of file ZdcTestAnalysis.cc.

54  {
55  //constructor
56  edm::ParameterSet m_Anal = p.getParameter<edm::ParameterSet>("ZdcTestAnalysis");
57  verbosity = m_Anal.getParameter<int>("Verbosity");
58  doNTzdcstep = m_Anal.getParameter<int>("StepNtupleFlag");
59  doNTzdcevent = m_Anal.getParameter<int>("EventNtupleFlag");
60  stepNtFileName = m_Anal.getParameter<std::string>("StepNtupleFileName");
61  eventNtFileName = m_Anal.getParameter<std::string>("EventNtupleFileName");
62 
63  if (verbosity > 0)
64  std::cout << std::endl;
65  std::cout << "============================================================================" << std::endl;
66  std::cout << "ZdcTestAnalysis:: Initialized as observer" << std::endl;
67  if (doNTzdcstep > 0) {
68  std::cout << " Step Ntuple will be created" << std::endl;
69  std::cout << " Step Ntuple file: " << stepNtFileName << std::endl;
70  }
71  if (doNTzdcevent > 0) {
72  std::cout << " Event Ntuple will be created" << std::endl;
73  std::cout << " Step Ntuple file: " << stepNtFileName << std::endl;
74  }
75  std::cout << "============================================================================" << std::endl;
76  std::cout << std::endl;
77 
78  if (doNTzdcstep > 0)
80  new TNtuple("NTzdcstep",
81  "NTzdcstep",
82  "evt:trackid:charge:pdgcode:x:y:z:stepl:stepe:eta:phi:vpx:vpy:vpz:idx:idl:pvtype:ncherphot");
83 
84  if (doNTzdcevent > 0)
86  new TNtuple("NTzdcevent",
87  "NTzdcevent",
88  "evt:ihit:fiberid:zside:subdet:layer:fiber:channel:enem:enhad:hitenergy:x:y:z:time:etot");
89 
90  theZdcNumScheme = nullptr;
91  //theZdcSD = new ZdcSD("ZDCHITSB", new ZdcNumberingScheme());
92 }

References gather_cfg::cout, doNTzdcevent, doNTzdcstep, eventNtFileName, edm::ParameterSet::getParameter(), AlCaHLTBitMon_ParallelJobs::p, stepNtFileName, AlCaHLTBitMon_QueryRunRegistry::string, theZdcNumScheme, verbosity, zdceventntuple, and zdcstepntuple.

◆ ~ZdcTestAnalysis()

ZdcTestAnalysis::~ZdcTestAnalysis ( )
override

Definition at line 94 of file ZdcTestAnalysis.cc.

94  {
95  // destructor
96  finish();
97  delete theZdcNumScheme;
98 }

References finish(), and theZdcNumScheme.

Member Function Documentation

◆ finish()

void ZdcTestAnalysis::finish ( )
private

Definition at line 400 of file ZdcTestAnalysis.cc.

400  {
401  if (doNTzdcstep) {
402  zdcOutputStepFile->cd();
403  zdcstepntuple->Write();
404  std::cout << "ZdcTestAnalysis: Ntuple step written for event: " << eventIndex << std::endl;
405  zdcOutputStepFile->Close();
406  std::cout << "ZdcTestAnalysis: Step file closed" << std::endl;
407  }
408 
409  if (doNTzdcevent) {
410  zdcOutputEventFile->cd();
411  zdceventntuple->Write("", TObject::kOverwrite);
412  std::cout << "ZdcTestAnalysis: Ntuple event written for event: " << eventIndex << std::endl;
413  zdcOutputEventFile->Close();
414  std::cout << "ZdcTestAnalysis: Event file closed" << std::endl;
415  }
416 }

References gather_cfg::cout, doNTzdcevent, doNTzdcstep, eventIndex, zdceventntuple, zdcOutputEventFile, zdcOutputStepFile, and zdcstepntuple.

Referenced by progressbar.ProgressBar::__next__(), and ~ZdcTestAnalysis().

◆ update() [1/6]

void ZdcTestAnalysis::update ( const BeginOfEvent )
overrideprivatevirtual

This routine will be called when the appropriate signal arrives.

Implements Observer< const BeginOfEvent * >.

Definition at line 126 of file ZdcTestAnalysis.cc.

126  {
127  //event
128  std::cout << "ZdcTest: Processing Event Number: " << eventIndex << std::endl;
129  eventIndex++;
130  stepIndex = 0;
131 }

References gather_cfg::cout, eventIndex, and stepIndex.

Referenced by progressbar.ProgressBar::__next__(), MatrixUtil.Matrix::__setitem__(), MatrixUtil.Steps::__setitem__(), progressbar.ProgressBar::finish(), and MatrixUtil.Steps::overwrite().

◆ update() [2/6]

void ZdcTestAnalysis::update ( const BeginOfJob )
overrideprivatevirtual

This routine will be called when the appropriate signal arrives.

Implements Observer< const BeginOfJob * >.

Definition at line 100 of file ZdcTestAnalysis.cc.

100  {
101  //job
102  std::cout << "beggining of job" << std::endl;
103  ;
104 }

References gather_cfg::cout.

Referenced by progressbar.ProgressBar::__next__(), MatrixUtil.Matrix::__setitem__(), MatrixUtil.Steps::__setitem__(), progressbar.ProgressBar::finish(), and MatrixUtil.Steps::overwrite().

◆ update() [3/6]

void ZdcTestAnalysis::update ( const BeginOfRun )
overrideprivatevirtual

This routine will be called when the appropriate signal arrives.

Implements Observer< const BeginOfRun * >.

Definition at line 107 of file ZdcTestAnalysis.cc.

107  {
108  //run
109 
110  std::cout << std::endl << "ZdcTestAnalysis: Begining of Run" << std::endl;
111  if (doNTzdcstep) {
112  std::cout << "ZDCTestAnalysis: output step file created" << std::endl;
113  TString stepfilename = stepNtFileName;
114  zdcOutputStepFile = new TFile(stepfilename, "RECREATE");
115  }
116 
117  if (doNTzdcevent) {
118  std::cout << "ZDCTestAnalysis: output event file created" << std::endl;
119  TString stepfilename = eventNtFileName;
120  zdcOutputEventFile = new TFile(stepfilename, "RECREATE");
121  }
122 
123  eventIndex = 0;
124 }

References gather_cfg::cout, doNTzdcevent, doNTzdcstep, eventIndex, eventNtFileName, stepNtFileName, zdcOutputEventFile, and zdcOutputStepFile.

Referenced by progressbar.ProgressBar::__next__(), MatrixUtil.Matrix::__setitem__(), MatrixUtil.Steps::__setitem__(), progressbar.ProgressBar::finish(), and MatrixUtil.Steps::overwrite().

◆ update() [4/6]

void ZdcTestAnalysis::update ( const EndOfEvent )
overrideprivatevirtual

This routine will be called when the appropriate signal arrives.

Implements Observer< const EndOfEvent * >.

Definition at line 254 of file ZdcTestAnalysis.cc.

254  {
255  //end of event
256 
257  // Look for the Hit Collection
258  std::cout << std::endl
259  << "ZdcTest::upDate(const EndOfEvent * evt) - event #" << (*evt)()->GetEventID() << std::endl
260  << " # of aSteps followed in event = " << stepIndex << std::endl;
261 
262  // access to the G4 hit collections
263  G4HCofThisEvent* allHC = (*evt)()->GetHCofThisEvent();
264  std::cout << " accessed all HC";
265 
266  int theZDCHCid = G4SDManager::GetSDMpointer()->GetCollectionID("ZDCHITS");
267  std::cout << " - theZDCHCid = " << theZDCHCid;
268 
269  CaloG4HitCollection* theZDCHC = (CaloG4HitCollection*)allHC->GetHC(theZDCHCid);
270  std::cout << " - theZDCHC = " << theZDCHC << std::endl;
271 
272  if (!theZdcNumScheme) {
274  }
275 
276  float ETot = 0., SEnergy = 0.;
277  int maxTime = 0;
278  int fiberID = 0;
279  unsigned int unsignedfiberID = 0;
280  std::map<int, float, std::less<int> > energyInFibers;
281  std::map<int, float, std::less<int> > primaries;
282  float totalEnergy = 0;
283  int nentries = theZDCHC->entries();
284  std::cout << " theZDCHC has " << nentries << " entries" << std::endl;
285 
286  if (doNTzdcevent) {
287  if (nentries > 0) {
288  for (int ihit = 0; ihit < nentries; ihit++) {
289  CaloG4Hit* caloHit = (*theZDCHC)[ihit];
290  totalEnergy += caloHit->getEnergyDeposit();
291  }
292 
293  for (int ihit = 0; ihit < nentries; ihit++) {
294  CaloG4Hit* aHit = (*theZDCHC)[ihit];
295  fiberID = aHit->getUnitID();
296  unsignedfiberID = aHit->getUnitID();
297  double enEm = aHit->getEM();
298  double enHad = aHit->getHadr();
299  math::XYZPoint hitPoint = aHit->getPosition();
300  double hitEnergy = aHit->getEnergyDeposit();
301  if (verbosity >= 1)
302  std::cout << " entry #" << ihit << ": fiberID=0x" << std::hex << fiberID << std::dec << "; enEm=" << enEm
303  << "; enHad=" << enHad << "; hitEnergy=" << hitEnergy << "z=" << hitPoint.z() << std::endl;
304  energyInFibers[fiberID] += enEm + enHad;
305  primaries[aHit->getTrackID()] += enEm + enHad;
306  float time = aHit->getTimeSliceID();
307  if (time > maxTime)
308  maxTime = (int)time;
309 
310  int thesubdet, thelayer, thefiber, thechannel, thez;
311  theZdcNumScheme->unpackZdcIndex(fiberID, thesubdet, thelayer, thefiber, thechannel, thez);
312  int unsignedsubdet, unsignedlayer, unsignedfiber, unsignedchannel, unsignedz;
314  unsignedfiberID, unsignedsubdet, unsignedlayer, unsignedfiber, unsignedchannel, unsignedz);
315 
316  // unsigned int packidx1 = packZdcIndex(thesubdet, thelayer, thefiber, thechannel, thez);
317  // unsigned int packidx1 = packZdcIndex(thesubdet, thelayer, thefiber, thechannel, thez);
318  // unsigned int packidx1 = packZdcIndex(thesubdet, thelayer, thefiber, thechannel, thez);
319  // unsigned int packidx1 = packZdcIndex(thesubdet, thelayer, thefiber, thechannel, thez);
320 
323  zdceventarray[ntzdce_fiberid] = (float)fiberID;
325  zdceventarray[ntzdce_subdet] = (float)thesubdet;
326  zdceventarray[ntzdce_layer] = (float)thelayer;
327  zdceventarray[ntzdce_fiber] = (float)thefiber;
328  zdceventarray[ntzdce_channel] = (float)thechannel;
329  zdceventarray[ntzdce_enem] = enEm;
330  zdceventarray[ntzdce_enhad] = enHad;
331  zdceventarray[ntzdce_hitenergy] = hitEnergy;
332  zdceventarray[ntzdce_x] = hitPoint.x();
333  zdceventarray[ntzdce_y] = hitPoint.y();
334  zdceventarray[ntzdce_z] = hitPoint.z();
336  zdceventarray[ntzdce_etot] = totalEnergy;
338  }
339 
340  for (std::map<int, float, std::less<int> >::iterator is = energyInFibers.begin(); is != energyInFibers.end();
341  is++) {
342  ETot = (*is).second;
343  SEnergy += ETot;
344  }
345 
346  // Find Primary info:
347  int trackID = 0;
348  G4PrimaryParticle* thePrim = nullptr;
349  G4int nvertex = (*evt)()->GetNumberOfPrimaryVertex();
350  std::cout << "Event has " << nvertex << " vertex" << std::endl;
351  if (nvertex == 0)
352  std::cout << "ZdcTest End Of Event ERROR: no vertex" << std::endl;
353 
354  for (int i = 0; i < nvertex; i++) {
355  G4PrimaryVertex* avertex = (*evt)()->GetPrimaryVertex(i);
356  if (avertex == nullptr) {
357  std::cout << "ZdcTest End Of Event ERR: pointer to vertex = 0" << std::endl;
358  } else {
359  std::cout << "Vertex number :" << i << std::endl;
360  int npart = avertex->GetNumberOfParticle();
361  if (npart == 0)
362  std::cout << "ZdcTest End Of Event ERR: no primary!" << std::endl;
363  if (thePrim == nullptr)
364  thePrim = avertex->GetPrimary(trackID);
365  }
366  }
367 
368  double px = 0., py = 0., pz = 0.;
369  double pInit = 0.;
370 
371  if (thePrim != nullptr) {
372  px = thePrim->GetPx();
373  py = thePrim->GetPy();
374  pz = thePrim->GetPz();
375  pInit = sqrt(pow(px, 2.) + pow(py, 2.) + pow(pz, 2.));
376  if (pInit == 0) {
377  std::cout << "ZdcTest End Of Event ERR: primary has p=0 " << std::endl;
378  }
379  } else {
380  std::cout << "ZdcTest End Of Event ERR: could not find primary " << std::endl;
381  }
382 
383  } // nentries > 0
384 
385  } // createNTzdcevent
386 
387  int iEvt = (*evt)()->GetEventID();
388  if (iEvt < 10)
389  std::cout << " ZdcTest Event " << iEvt << std::endl;
390  else if ((iEvt < 100) && (iEvt % 10 == 0))
391  std::cout << " ZdcTest Event " << iEvt << std::endl;
392  else if ((iEvt < 1000) && (iEvt % 100 == 0))
393  std::cout << " ZdcTest Event " << iEvt << std::endl;
394  else if ((iEvt < 10000) && (iEvt % 1000 == 0))
395  std::cout << " ZdcTest Event " << iEvt << std::endl;
396 }

References gather_cfg::cout, TauDecayModes::dec, doNTzdcevent, eventIndex, dqmMemoryStats::float, CaloG4Hit::getEM(), CaloG4Hit::getEnergyDeposit(), CaloG4Hit::getHadr(), CaloG4Hit::getPosition(), CaloG4Hit::getTimeSliceID(), CaloG4Hit::getTrackID(), CaloG4Hit::getUnitID(), mps_fire::i, createfilelist::int, genParticles_cff::map, HLT_FULL_cff::maxTime, npart, ntzdce_channel, ntzdce_enem, ntzdce_enhad, ntzdce_etot, ntzdce_evt, ntzdce_fiber, ntzdce_fiberid, ntzdce_hitenergy, ntzdce_ihit, ntzdce_layer, ntzdce_subdet, ntzdce_time, ntzdce_x, ntzdce_y, ntzdce_z, ntzdce_zside, funct::pow(), multPhiCorr_741_25nsDY_cfi::px, multPhiCorr_741_25nsDY_cfi::py, mathSSE::sqrt(), stepIndex, theZdcNumScheme, protons_cff::time, ZdcNumberingScheme::unpackZdcIndex(), verbosity, zdceventarray, and zdceventntuple.

Referenced by progressbar.ProgressBar::__next__(), MatrixUtil.Matrix::__setitem__(), MatrixUtil.Steps::__setitem__(), progressbar.ProgressBar::finish(), and MatrixUtil.Steps::overwrite().

◆ update() [5/6]

void ZdcTestAnalysis::update ( const EndOfRun )
overrideprivatevirtual

This routine will be called when the appropriate signal arrives.

Implements Observer< const EndOfRun * >.

Definition at line 398 of file ZdcTestAnalysis.cc.

398 { ; }

Referenced by progressbar.ProgressBar::__next__(), MatrixUtil.Matrix::__setitem__(), MatrixUtil.Steps::__setitem__(), progressbar.ProgressBar::finish(), and MatrixUtil.Steps::overwrite().

◆ update() [6/6]

void ZdcTestAnalysis::update ( const G4Step *  )
overrideprivatevirtual

This routine will be called when the appropriate signal arrives.

Implements Observer< const G4Step * >.

Definition at line 133 of file ZdcTestAnalysis.cc.

133  {
134  //step;
135  stepIndex++;
136 
137  if (doNTzdcstep) {
138  G4StepPoint* preStepPoint = aStep->GetPreStepPoint();
139  // G4StepPoint * postStepPoint= aStep->GetPostStepPoint();
140  G4double stepL = aStep->GetStepLength();
141  G4double stepE = aStep->GetTotalEnergyDeposit();
142 
143  if (verbosity >= 2)
144  std::cout << "Step " << stepL << "," << stepE << std::endl;
145 
146  G4Track* theTrack = aStep->GetTrack();
147  G4int theTrackID = theTrack->GetTrackID();
148  G4double theCharge = theTrack->GetDynamicParticle()->GetCharge();
149  G4String particleType = theTrack->GetDefinition()->GetParticleName();
150  G4int pdgcode = theTrack->GetDefinition()->GetPDGEncoding();
151 
152  const G4ThreeVector& vert_mom = theTrack->GetVertexMomentumDirection();
153  G4double vpx = vert_mom.x();
154  G4double vpy = vert_mom.y();
155  G4double vpz = vert_mom.z();
156  double eta = 0.5 * log((1. + vpz) / (1. - vpz));
157  double phi = atan2(vpy, vpx);
158 
159  const G4ThreeVector& hitPoint = preStepPoint->GetPosition();
160  G4ThreeVector localPoint = theTrack->GetTouchable()->GetHistory()->GetTopTransform().TransformPoint(hitPoint);
161 
162  const G4VTouchable* touch = aStep->GetPreStepPoint()->GetTouchable();
163  int idx = touch->GetReplicaNumber(0);
164  int idLayer = -1;
165  int thePVtype = -1;
166 
167  int historyDepth = touch->GetHistoryDepth();
168 
169  if (historyDepth > 0) {
170  std::vector<int> theReplicaNumbers(historyDepth);
171  std::vector<G4VPhysicalVolume*> thePhysicalVolumes(historyDepth);
172  std::vector<G4String> thePVnames(historyDepth);
173  std::vector<G4LogicalVolume*> theLogicalVolumes(historyDepth);
174  std::vector<G4String> theLVnames(historyDepth);
175  std::vector<G4Material*> theMaterials(historyDepth);
176  std::vector<G4String> theMaterialNames(historyDepth);
177 
178  for (int jj = 0; jj < historyDepth; jj++) {
179  theReplicaNumbers[jj] = touch->GetReplicaNumber(jj);
180  thePhysicalVolumes[jj] = touch->GetVolume(jj);
181  thePVnames[jj] = thePhysicalVolumes[jj]->GetName();
182  theLogicalVolumes[jj] = thePhysicalVolumes[jj]->GetLogicalVolume();
183  theLVnames[jj] = theLogicalVolumes[jj]->GetName();
184  theMaterials[jj] = theLogicalVolumes[jj]->GetMaterial();
185  theMaterialNames[jj] = theMaterials[jj]->GetName();
186  if (verbosity >= 2)
187  std::cout << " GHD " << jj << ": " << theReplicaNumbers[jj] << "," << thePVnames[jj] << "," << theLVnames[jj]
188  << "," << theMaterialNames[jj] << std::endl;
189  }
190 
191  idLayer = theReplicaNumbers[1];
192  if (thePVnames[0] == "ZDC_EMLayer")
193  thePVtype = 1;
194  else if (thePVnames[0] == "ZDC_EMAbsorber")
195  thePVtype = 2;
196  else if (thePVnames[0] == "ZDC_EMFiber")
197  thePVtype = 3;
198  else if (thePVnames[0] == "ZDC_HadLayer")
199  thePVtype = 7;
200  else if (thePVnames[0] == "ZDC_HadAbsorber")
201  thePVtype = 8;
202  else if (thePVnames[0] == "ZDC_HadFiber")
203  thePVtype = 9;
204  else if (thePVnames[0] == "ZDC_PhobosLayer")
205  thePVtype = 11;
206  else if (thePVnames[0] == "ZDC_PhobosAbsorber")
207  thePVtype = 12;
208  else if (thePVnames[0] == "ZDC_PhobosFiber")
209  thePVtype = 13;
210  else {
211  thePVtype = 0;
212  if (verbosity >= 2)
213  std::cout << " pvtype=0 hd=" << historyDepth << " " << theReplicaNumbers[0] << "," << thePVnames[0] << ","
214  << theLVnames[0] << "," << theMaterialNames[0] << std::endl;
215  }
216  } else if (historyDepth == 0) {
217  int theReplicaNumber = touch->GetReplicaNumber(0);
218  G4VPhysicalVolume* thePhysicalVolume = touch->GetVolume(0);
219  const G4String& thePVname = thePhysicalVolume->GetName();
220  G4LogicalVolume* theLogicalVolume = thePhysicalVolume->GetLogicalVolume();
221  const G4String& theLVname = theLogicalVolume->GetName();
222  G4Material* theMaterial = theLogicalVolume->GetMaterial();
223  const G4String& theMaterialName = theMaterial->GetName();
224  if (verbosity >= 2)
225  std::cout << " hd=0 " << theReplicaNumber << "," << thePVname << "," << theLVname << "," << theMaterialName
226  << std::endl;
227  } else {
228  std::cout << " hd<0: hd=" << historyDepth << std::endl;
229  }
230 
231  double NCherPhot = -1;
233  zdcsteparray[ntzdcs_trackid] = (float)theTrackID;
235  zdcsteparray[ntzdcs_pdgcode] = (float)pdgcode;
236  zdcsteparray[ntzdcs_x] = hitPoint.x();
237  zdcsteparray[ntzdcs_y] = hitPoint.y();
238  zdcsteparray[ntzdcs_z] = hitPoint.z();
239  zdcsteparray[ntzdcs_stepl] = stepL;
240  zdcsteparray[ntzdcs_stepe] = stepE;
243  zdcsteparray[ntzdcs_vpx] = vpx;
244  zdcsteparray[ntzdcs_vpy] = vpy;
245  zdcsteparray[ntzdcs_vpz] = vpz;
247  zdcsteparray[ntzdcs_idl] = (float)idLayer;
248  zdcsteparray[ntzdcs_pvtype] = thePVtype;
249  zdcsteparray[ntzdcs_ncherphot] = NCherPhot;
251  }
252 }

References gather_cfg::cout, doNTzdcstep, PVValHelper::eta, eventIndex, dqmMemoryStats::float, eventwithhistoryproducer_cfi::historyDepth, heavyIonCSV_trainingSettings::idx, findQualityFiles::jj, dqm-mbProfile::log, ntzdcs_charge, ntzdcs_eta, ntzdcs_evt, ntzdcs_idl, ntzdcs_idx, ntzdcs_ncherphot, ntzdcs_pdgcode, ntzdcs_phi, ntzdcs_pvtype, ntzdcs_stepe, ntzdcs_stepl, ntzdcs_trackid, ntzdcs_vpx, ntzdcs_vpy, ntzdcs_vpz, ntzdcs_x, ntzdcs_y, ntzdcs_z, PbPb_ZMuSkimMuonDPG_cff::particleType, phi, stepIndex, AlignmentTrackSelector_cfi::theCharge, verbosity, zdcsteparray, and zdcstepntuple.

Referenced by progressbar.ProgressBar::__next__(), MatrixUtil.Matrix::__setitem__(), MatrixUtil.Steps::__setitem__(), progressbar.ProgressBar::finish(), and MatrixUtil.Steps::overwrite().

Member Data Documentation

◆ doNTzdcevent

int ZdcTestAnalysis::doNTzdcevent
private

Definition at line 88 of file ZdcTestAnalysis.h.

Referenced by finish(), update(), and ZdcTestAnalysis().

◆ doNTzdcstep

int ZdcTestAnalysis::doNTzdcstep
private

Definition at line 87 of file ZdcTestAnalysis.h.

Referenced by finish(), update(), and ZdcTestAnalysis().

◆ eventIndex

int ZdcTestAnalysis::eventIndex
private

Definition at line 98 of file ZdcTestAnalysis.h.

Referenced by finish(), and update().

◆ eventNtFileName

std::string ZdcTestAnalysis::eventNtFileName
private

Definition at line 90 of file ZdcTestAnalysis.h.

Referenced by update(), and ZdcTestAnalysis().

◆ stepIndex

int ZdcTestAnalysis::stepIndex
private

Definition at line 99 of file ZdcTestAnalysis.h.

Referenced by update().

◆ stepNtFileName

std::string ZdcTestAnalysis::stepNtFileName
private

Definition at line 89 of file ZdcTestAnalysis.h.

Referenced by update(), and ZdcTestAnalysis().

◆ theZdcNumScheme

ZdcNumberingScheme* ZdcTestAnalysis::theZdcNumScheme
private

Definition at line 104 of file ZdcTestAnalysis.h.

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

◆ verbosity

int ZdcTestAnalysis::verbosity
private

Definition at line 86 of file ZdcTestAnalysis.h.

Referenced by update(), and ZdcTestAnalysis().

◆ zdceventarray

Float_t ZdcTestAnalysis::zdceventarray[16]
private

Definition at line 102 of file ZdcTestAnalysis.h.

Referenced by update().

◆ zdceventntuple

TNtuple* ZdcTestAnalysis::zdceventntuple
private

Definition at line 96 of file ZdcTestAnalysis.h.

Referenced by finish(), update(), and ZdcTestAnalysis().

◆ zdcOutputEventFile

TFile* ZdcTestAnalysis::zdcOutputEventFile
private

Definition at line 92 of file ZdcTestAnalysis.h.

Referenced by finish(), and update().

◆ zdcOutputStepFile

TFile* ZdcTestAnalysis::zdcOutputStepFile
private

Definition at line 93 of file ZdcTestAnalysis.h.

Referenced by finish(), and update().

◆ zdcsteparray

Float_t ZdcTestAnalysis::zdcsteparray[18]
private

Definition at line 101 of file ZdcTestAnalysis.h.

Referenced by update().

◆ zdcstepntuple

TNtuple* ZdcTestAnalysis::zdcstepntuple
private

Definition at line 95 of file ZdcTestAnalysis.h.

Referenced by finish(), update(), and ZdcTestAnalysis().

CaloG4Hit::getTrackID
int getTrackID() const
Definition: CaloG4Hit.h:64
mps_fire.i
i
Definition: mps_fire.py:428
eventwithhistoryproducer_cfi.historyDepth
historyDepth
Definition: eventwithhistoryproducer_cfi.py:4
ntzdce_hitenergy
Definition: ZdcTestAnalysis.cc:46
ZdcTestAnalysis::zdceventarray
Float_t zdceventarray[16]
Definition: ZdcTestAnalysis.h:102
dqmMemoryStats.float
float
Definition: dqmMemoryStats.py:127
ntzdcs_ncherphot
Definition: ZdcTestAnalysis.cc:32
ntzdcs_stepe
Definition: ZdcTestAnalysis.cc:23
CaloG4Hit::getUnitID
uint32_t getUnitID() const
Definition: CaloG4Hit.h:66
multPhiCorr_741_25nsDY_cfi.py
py
Definition: multPhiCorr_741_25nsDY_cfi.py:12
ntzdcs_evt
Definition: ZdcTestAnalysis.cc:15
AlCaHLTBitMon_ParallelJobs.p
p
Definition: AlCaHLTBitMon_ParallelJobs.py:153
ntzdcs_idl
Definition: ZdcTestAnalysis.cc:30
ntzdcs_pvtype
Definition: ZdcTestAnalysis.cc:31
gather_cfg.cout
cout
Definition: gather_cfg.py:144
protons_cff.time
time
Definition: protons_cff.py:39
ZdcTestAnalysis::theZdcNumScheme
ZdcNumberingScheme * theZdcNumScheme
Definition: ZdcTestAnalysis.h:104
ntzdce_etot
Definition: ZdcTestAnalysis.cc:51
ZdcTestAnalysis::verbosity
int verbosity
Definition: ZdcTestAnalysis.h:86
ZdcTestAnalysis::zdceventntuple
TNtuple * zdceventntuple
Definition: ZdcTestAnalysis.h:96
ZdcTestAnalysis::zdcstepntuple
TNtuple * zdcstepntuple
Definition: ZdcTestAnalysis.h:95
ntzdcs_idx
Definition: ZdcTestAnalysis.cc:29
HLT_FULL_cff.maxTime
maxTime
Definition: HLT_FULL_cff.py:8946
ntzdcs_charge
Definition: ZdcTestAnalysis.cc:17
npart
double npart
Definition: HydjetWrapper.h:46
ntzdce_channel
Definition: ZdcTestAnalysis.cc:43
heavyIonCSV_trainingSettings.idx
idx
Definition: heavyIonCSV_trainingSettings.py:5
ntzdce_time
Definition: ZdcTestAnalysis.cc:50
ZdcTestAnalysis::zdcOutputStepFile
TFile * zdcOutputStepFile
Definition: ZdcTestAnalysis.h:93
ntzdce_zside
Definition: ZdcTestAnalysis.cc:39
PVValHelper::eta
Definition: PVValidationHelpers.h:70
ZdcNumberingScheme
Definition: ZdcNumberingScheme.h:13
mathSSE::sqrt
T sqrt(T t)
Definition: SSEVec.h:19
ntzdce_y
Definition: ZdcTestAnalysis.cc:48
CaloG4Hit::getEnergyDeposit
double getEnergyDeposit() const
Definition: CaloG4Hit.h:78
ntzdcs_eta
Definition: ZdcTestAnalysis.cc:24
ntzdce_evt
Definition: ZdcTestAnalysis.cc:36
ntzdce_ihit
Definition: ZdcTestAnalysis.cc:37
ntzdcs_vpx
Definition: ZdcTestAnalysis.cc:26
AlCaHLTBitMon_QueryRunRegistry.string
string
Definition: AlCaHLTBitMon_QueryRunRegistry.py:256
ZdcNumberingScheme::unpackZdcIndex
static void unpackZdcIndex(const unsigned int &idx, int &subDet, int &layer, int &fiber, int &channel, int &z)
Definition: ZdcNumberingScheme.cc:139
ZdcTestAnalysis::stepNtFileName
std::string stepNtFileName
Definition: ZdcTestAnalysis.h:89
CaloG4Hit::getEM
double getEM() const
Definition: CaloG4Hit.h:55
edm::ParameterSet
Definition: ParameterSet.h:47
math::XYZPoint
XYZPointD XYZPoint
point in space with cartesian internal representation
Definition: Point3D.h:12
ntzdce_z
Definition: ZdcTestAnalysis.cc:49
ntzdce_fiberid
Definition: ZdcTestAnalysis.cc:38
ntzdce_enem
Definition: ZdcTestAnalysis.cc:44
ntzdce_enhad
Definition: ZdcTestAnalysis.cc:45
ZdcTestAnalysis::finish
void finish()
Definition: ZdcTestAnalysis.cc:400
createfilelist.int
int
Definition: createfilelist.py:10
ZdcTestAnalysis::eventNtFileName
std::string eventNtFileName
Definition: ZdcTestAnalysis.h:90
ZdcTestAnalysis::zdcOutputEventFile
TFile * zdcOutputEventFile
Definition: ZdcTestAnalysis.h:92
ntzdce_layer
Definition: ZdcTestAnalysis.cc:41
ntzdcs_x
Definition: ZdcTestAnalysis.cc:19
CaloG4Hit
Definition: CaloG4Hit.h:32
CaloG4Hit::getPosition
math::XYZPoint getPosition() const
Definition: CaloG4Hit.h:52
ntzdcs_z
Definition: ZdcTestAnalysis.cc:21
DDAxes::phi
multPhiCorr_741_25nsDY_cfi.px
px
Definition: multPhiCorr_741_25nsDY_cfi.py:10
AlignmentTrackSelector_cfi.theCharge
theCharge
Definition: AlignmentTrackSelector_cfi.py:20
ntzdcs_phi
Definition: ZdcTestAnalysis.cc:25
ntzdcs_y
Definition: ZdcTestAnalysis.cc:20
CaloG4Hit::getTimeSliceID
int getTimeSliceID() const
Definition: CaloG4Hit.h:68
ntzdcs_trackid
Definition: ZdcTestAnalysis.cc:16
ZdcTestAnalysis::doNTzdcevent
int doNTzdcevent
Definition: ZdcTestAnalysis.h:88
findQualityFiles.jj
string jj
Definition: findQualityFiles.py:188
ntzdcs_stepl
Definition: ZdcTestAnalysis.cc:22
edm::ParameterSet::getParameter
T getParameter(std::string const &) const
Definition: ParameterSet.h:303
CaloG4HitCollection
G4THitsCollection< CaloG4Hit > CaloG4HitCollection
Definition: CaloG4HitCollection.h:11
ZdcTestAnalysis::stepIndex
int stepIndex
Definition: ZdcTestAnalysis.h:99
dqm-mbProfile.log
log
Definition: dqm-mbProfile.py:17
funct::pow
Power< A, B >::type pow(const A &a, const B &b)
Definition: Power.h:29
ZdcTestAnalysis::zdcsteparray
Float_t zdcsteparray[18]
Definition: ZdcTestAnalysis.h:101
genParticles_cff.map
map
Definition: genParticles_cff.py:11
ntzdcs_vpz
Definition: ZdcTestAnalysis.cc:28
PbPb_ZMuSkimMuonDPG_cff.particleType
particleType
Definition: PbPb_ZMuSkimMuonDPG_cff.py:27
ntzdce_fiber
Definition: ZdcTestAnalysis.cc:42
ZdcTestAnalysis::doNTzdcstep
int doNTzdcstep
Definition: ZdcTestAnalysis.h:87
ntzdce_subdet
Definition: ZdcTestAnalysis.cc:40
CaloG4Hit::getHadr
double getHadr() const
Definition: CaloG4Hit.h:58
ntzdcs_pdgcode
Definition: ZdcTestAnalysis.cc:18
ZdcTestAnalysis::eventIndex
int eventIndex
Definition: ZdcTestAnalysis.h:98
TauDecayModes.dec
dec
Definition: TauDecayModes.py:143
ntzdcs_vpy
Definition: ZdcTestAnalysis.cc:27
ntzdce_x
Definition: ZdcTestAnalysis.cc:47