Belle II Software  release-05-02-19
MCMatcherTRGECLModule Class Reference

Class to represent the hit of one cell. More...

#include <MCMatcherTRGECLModule.h>

Inheritance diagram for MCMatcherTRGECLModule:
Collaboration diagram for MCMatcherTRGECLModule:

Public Types

typedef std::map< int, int > PrimaryTrackMap
 define a map for Primary Track
 
typedef std::multimap< int, int > MultiMap
 define a multimap for hits in showers
 
enum  EModulePropFlags {
  c_Input = 1,
  c_Output = 2,
  c_ParallelProcessingCertified = 4,
  c_HistogramManager = 8,
  c_InternalSerializer = 16,
  c_TerminateInAllProcesses = 32,
  c_DontCollectStatistics = 64
}
 Each module can be tagged with property flags, which indicate certain features of the module. More...
 
typedef ModuleCondition::EAfterConditionPath EAfterConditionPath
 Forward the EAfterConditionPath definition from the ModuleCondition.
 

Public Member Functions

 MCMatcherTRGECLModule ()
 Constructor.
 
virtual ~MCMatcherTRGECLModule ()
 Destructor.
 
virtual void initialize () override
 Initialize variables, print info, and start CPU clock.
 
virtual void beginRun () override
 Nothing so far.
 
virtual void event () override
 Actual digitization of all hits in the ECL. More...
 
virtual void endRun () override
 Nothing so far.
 
virtual void terminate () override
 Stopping of CPU clock.
 
virtual std::vector< std::string > getFileNames (__attribute__((unused)) bool outputFiles)
 Return a list of output filenames for this modules. More...
 
const std::string & getName () const
 Returns the name of the module. More...
 
const std::string & getType () const
 Returns the type of the module (i.e. More...
 
const std::string & getPackage () const
 Returns the package this module is in.
 
const std::string & getDescription () const
 Returns the description of the module.
 
void setName (const std::string &name)
 Set the name of the module. More...
 
void setPropertyFlags (unsigned int propertyFlags)
 Sets the flags for the module properties. More...
 
LogConfiggetLogConfig ()
 Returns the log system configuration.
 
void setLogConfig (const LogConfig &logConfig)
 Set the log system configuration.
 
void setLogLevel (int logLevel)
 Configure the log level.
 
void setDebugLevel (int debugLevel)
 Configure the debug messaging level.
 
void setAbortLevel (int abortLevel)
 Configure the abort log level.
 
void setLogInfo (int logLevel, unsigned int logInfo)
 Configure the printed log information for the given level. More...
 
void if_value (const std::string &expression, const std::shared_ptr< Path > &path, EAfterConditionPath afterConditionPath=EAfterConditionPath::c_End)
 Add a condition to the module. More...
 
void if_false (const std::shared_ptr< Path > &path, EAfterConditionPath afterConditionPath=EAfterConditionPath::c_End)
 A simplified version to add a condition to the module. More...
 
void if_true (const std::shared_ptr< Path > &path, EAfterConditionPath afterConditionPath=EAfterConditionPath::c_End)
 A simplified version to set the condition of the module. More...
 
bool hasCondition () const
 Returns true if at least one condition was set for the module.
 
const ModuleConditiongetCondition () const
 Return a pointer to the first condition (or nullptr, if none was set)
 
const std::vector< ModuleCondition > & getAllConditions () const
 Return all set conditions for this module.
 
bool evalCondition () const
 If at least one condition was set, it is evaluated and true returned if at least one condition returns true. More...
 
std::shared_ptr< PathgetConditionPath () const
 Returns the path of the last true condition (if there is at least one, else reaturn a null pointer). More...
 
Module::EAfterConditionPath getAfterConditionPath () const
 What to do after the conditional path is finished. More...
 
std::vector< std::shared_ptr< Path > > getAllConditionPaths () const
 Return all condition paths currently set (no matter if the condition is true or not).
 
bool hasProperties (unsigned int propertyFlags) const
 Returns true if all specified property flags are available in this module. More...
 
bool hasUnsetForcedParams () const
 Returns true and prints error message if the module has unset parameters which the user has to set in the steering file.
 
const ModuleParamListgetParamList () const
 Return module param list.
 
template<typename T >
ModuleParam< T > & getParam (const std::string &name) const
 Returns a reference to a parameter. More...
 
bool hasReturnValue () const
 Return true if this module has a valid return value set.
 
int getReturnValue () const
 Return the return value set by this module. More...
 
std::shared_ptr< PathElementclone () const override
 Create an independent copy of this module. More...
 
std::shared_ptr< boost::python::list > getParamInfoListPython () const
 Returns a python list of all parameters. More...
 

Static Public Member Functions

static void exposePythonAPI ()
 Exposes methods of the Module class to Python.
 

Protected Member Functions

virtual void def_initialize ()
 Wrappers to make the methods without "def_" prefix callable from Python. More...
 
virtual void def_beginRun ()
 Wrapper method for the virtual function beginRun() that has the implementation to be used in a call from Python.
 
virtual void def_event ()
 Wrapper method for the virtual function event() that has the implementation to be used in a call from Python.
 
virtual void def_endRun ()
 This method can receive that the current run ends as a call from the Python side. More...
 
virtual void def_terminate ()
 Wrapper method for the virtual function terminate() that has the implementation to be used in a call from Python.
 
void setDescription (const std::string &description)
 Sets the description of the module. More...
 
void setType (const std::string &type)
 Set the module type. More...
 
template<typename T >
void addParam (const std::string &name, T &paramVariable, const std::string &description, const T &defaultValue)
 Adds a new parameter to the module. More...
 
template<typename T >
void addParam (const std::string &name, T &paramVariable, const std::string &description)
 Adds a new enforced parameter to the module. More...
 
void setReturnValue (int value)
 Sets the return value for this module as integer. More...
 
void setReturnValue (bool value)
 Sets the return value for this module as bool. More...
 
void setParamList (const ModuleParamList &params)
 Replace existing parameter list.
 

Private Member Functions

std::list< ModulePtrgetModules () const override
 no submodules, return empty list
 
std::string getPathString () const override
 return the module name.
 
void setParamPython (const std::string &name, const boost::python::object &pyObj)
 Implements a method for setting boost::python objects. More...
 
void setParamPythonDict (const boost::python::dict &dictionary)
 Implements a method for reading the parameter values from a boost::python dictionary. More...
 

Private Attributes

StoreArray< TRGECLDigi0MCm_trgECLDigi0MC
 output for TRGECLDigi0MC
 
StoreArray< TRGECLHitMCm_trgECLHitMC
 output for TRGECLHitMC
 
double m_timeCPU = 0.
 CPU time

 
int m_nRun = 0
 Run number

 
int m_nEvent = 0
 Event number.
 
TrgEclMapping_TCMap
 object of TC Mapping
 
int TCId [100]
 TCId

 
double TCRawEnergy [100]
 TC raw energy.
 
double TCRawTiming [100]
 TC raw timing.
 
double SignalContribution [100]
 Signal Contibution in a TC.
 
double BKGContribution [100]
 Backgroun Contribution in a TC

 
double maxEnergy [100][3]
 Energy of maximum contribtion particle

 
double contribution [100][3]
 particles contribution

 
int TCPrimaryIndex [100][3]
 Primary Index in TC hit

 
int XtalId [100][3]
 XtalId in TC

 
double px [100][3]
 Momentum X of particle.
 
double py [100][3]
 Momentum Y of particle.
 
double pz [100][3]
 Momentum Z of particle.
 
int trackId [100][3]
 Track Id.
 
int background_tag [100][3]
 Beam background tag.
 
int pid [100][3]
 Particle ID.
 
int mother [100][3]
 Mother ID

 
int gmother [100][3]
 Grand mother ID

 
int ggmother [100][3]
 Grand Grand Mother ID

 
int gggmother [100][3]
 Grand Grand Grand Mother ID

 
double MCEnergy [100][3]
 Raw Energy of particle

 
int ieclhit [100][3]
 eclhit id

 
int TCIdHit [100]
 TCId

 
double TCHitEnergy [100]
 TC Hit energy

 
double TCHitTiming [100]
 TC Hit Timking

 
int TCPrimaryIndexHit [100][3]
 Primary Index in TC hit

 
int XtalIdHit [100][3]
 XtalId in TC

 
double pxHit [100][3]
 Momentum X of particle.
 
double pyHit [100][3]
 Momentum X of particle.
 
double pzHit [100][3]
 Momentum X of particle.
 
int trackIdHit [100][3]
 Track Id.
 
int background_tagHit [100][3]
 Beam background tag.
 
int pidHit [100][3]
 Particle ID.
 
int motherHit [100][3]
 Mother ID

 
int gmotherHit [100][3]
 Grand mother ID

 
int ggmotherHit [100][3]
 Grand Grand Mother ID

 
int gggmotherHit [100][3]
 Grand Grand Grand Mother ID

 
double MCEnergyHit [100][3]
 Raw Energy of particle

 
double SignalContributionHit [100]
 Signal Contibution in a TC.
 
double BKGContributionHit [100]
 Backgroun Contribution in a TC

 
double contributionHit [100][3]
 particles contribution

 
std::string m_name
 The name of the module, saved as a string (user-modifiable)
 
std::string m_type
 The type of the module, saved as a string.
 
std::string m_package
 Package this module is found in (may be empty).
 
std::string m_description
 The description of the module.
 
unsigned int m_propertyFlags
 The properties of the module as bitwise or (with |) of EModulePropFlags.
 
LogConfig m_logConfig
 The log system configuration of the module.
 
ModuleParamList m_moduleParamList
 List storing and managing all parameter of the module.
 
bool m_hasReturnValue
 True, if the return value is set.
 
int m_returnValue
 The return value.
 
std::vector< ModuleConditionm_conditions
 Module condition, only non-null if set.
 

Detailed Description

Class to represent the hit of one cell.

Definition at line 40 of file MCMatcherTRGECLModule.h.

Member Enumeration Documentation

◆ EModulePropFlags

enum EModulePropFlags
inherited

Each module can be tagged with property flags, which indicate certain features of the module.

Enumerator
c_Input 

This module is an input module (reads data).

c_Output 

This module is an output module (writes data).

c_ParallelProcessingCertified 

This module can be run in parallel processing mode safely (All I/O must be done through the data store, in particular, the module must not write any files.)

c_HistogramManager 

This module is used to manage histograms accumulated by other modules.

c_InternalSerializer 

This module is an internal serializer/deserializer for parallel processing.

c_TerminateInAllProcesses 

When using parallel processing, call this module's terminate() function in all processes().

This will also ensure that there is exactly one process (single-core if no parallel modules found) or at least one input, one main and one output process.

c_DontCollectStatistics 

No statistics is collected for this module.

Definition at line 79 of file Module.h.

Member Function Documentation

◆ clone()

std::shared_ptr< PathElement > clone ( ) const
overridevirtualinherited

Create an independent copy of this module.

Note that parameters are shared, so changing them on a cloned module will also affect the original module.

Implements PathElement.

Definition at line 181 of file Module.cc.

◆ def_endRun()

virtual void def_endRun ( )
inlineprotectedvirtualinherited

This method can receive that the current run ends as a call from the Python side.

For regular C++-Modules that forwards the call to the regular endRun() method.

Reimplemented in PyModule.

Definition at line 441 of file Module.h.

◆ def_initialize()

virtual void def_initialize ( )
inlineprotectedvirtualinherited

Wrappers to make the methods without "def_" prefix callable from Python.

Overridden in PyModule. Wrapper method for the virtual function initialize() that has the implementation to be used in a call from Python.

Reimplemented in PyModule.

Definition at line 422 of file Module.h.

◆ evalCondition()

bool evalCondition ( ) const
inherited

If at least one condition was set, it is evaluated and true returned if at least one condition returns true.

If no condition or result value was defined, the method returns false. Otherwise, the condition is evaluated and true returned, if at least one condition returns true. To speed up the evaluation, the condition strings were already parsed in the method if_value().

Returns
True if at least one condition and return value exists and at least one condition expression was evaluated to true.

Definition at line 98 of file Module.cc.

◆ event()

void event ( )
overridevirtual

Actual digitization of all hits in the ECL.

The digitized hits are written into the DataStore.

Reimplemented from Module.

Definition at line 148 of file MCMatcherTRGECLModule.cc.

149 {
150 
151 
152  StoreArray<MCParticle> mcParticles;
153  PrimaryTrackMap eclPrimaryMap;
154  eclPrimaryMap.clear();
155  int nParticles = mcParticles.getEntries();
156  // cout << nParticles << endl;
157  for (int iPart = 0; iPart < nParticles ; ++iPart) {
158  if (mcParticles[iPart]->getMother() == NULL) {
159  if (!mcParticles[iPart]->hasStatus(MCParticle::c_PrimaryParticle)) {
160  if (!mcParticles[iPart]->hasStatus(MCParticle::c_StableInGenerator)) {
161  continue;
162  }
163  }
164  }
165 
166 
167 
168  bool adhoc_StableInGeneratorFlag(mcParticles[iPart]->hasStatus(MCParticle::c_StableInGenerator));
169 
170  if (mcParticles[iPart]->hasStatus(MCParticle::c_PrimaryParticle)
171  && adhoc_StableInGeneratorFlag) {
172  if (mcParticles[iPart]->getArrayIndex() == -1) {
173  eclPrimaryMap.insert(pair<int, int>(iPart, iPart));
174  } else {
175  eclPrimaryMap.insert(pair<int, int>(mcParticles[iPart]->getArrayIndex(), mcParticles[iPart]->getArrayIndex()));
176  }
177  } else {
178  if (mcParticles[iPart]->getMother() == NULL) continue;
179  if (eclPrimaryMap.find(mcParticles[iPart]->getMother()->getArrayIndex()) != eclPrimaryMap.end()) {
180  eclPrimaryMap.insert(
181  pair<int, int>(mcParticles[iPart]->getArrayIndex(), eclPrimaryMap[mcParticles[iPart]->getMother()->getArrayIndex()]));
182 
183  }//if mother of mcParticles is stored.
184  }//if c_StableInGenerator and c_PrimaryParticle
185 
186  }//for mcParticles
187 
188  //Connect TRGECLDigi0 and MCParticle using ECLHit
189  StoreArray<ECLHit> eclHitArray("ECLHits");
190  RelationArray eclHitRel(mcParticles, eclHitArray);
191  StoreArray<TRGECLDigi0> trgeclDigi0Array;
192  RelationArray trgeclDigi0ToMCPart(trgeclDigi0Array, mcParticles);
193  int nHits_hit = eclHitArray.getEntries() - 1;
194  //
195  int ihit = 0;
196 
197  const int NofTCDigiHit = trgeclDigi0Array.getEntries();
198 
199  // cout << NofTCDigiHit << endl;
200 
201  for (int ii = 0; ii < NofTCDigiHit; ii++) {
202 
203 
204  TRGECLDigi0* aTRGECLDigi0 = trgeclDigi0Array[ii];
205  TCId[ihit] = (aTRGECLDigi0->getTCId() - 1);
206  TCRawTiming[ihit] = aTRGECLDigi0 ->getRawTiming();
207 
208  int itimeindex = (int)(TCRawTiming[ihit] / 100 + 40);
209  TCRawEnergy[ihit] = aTRGECLDigi0 ->getRawEnergy() / Unit::GeV;
210  if (TCRawEnergy[ihit] < 0.1) {continue;} //0.05 GeV cut to save time.
211  for (int hit = 0; hit < nHits_hit; hit++) {//Find relation of TRGECLDigi0 and ECLHit
212 
213  ECLHit* aECLHit = eclHitArray[hit];;
214 
215  double hitE = aECLHit->getEnergyDep() / Unit::GeV;
216  if (hitE < 0.1) {continue;} //to save time.
217  int hitCellId = aECLHit->getCellId() - 1;
218  int hitTCId = _TCMap->getTCIdFromXtalId(hitCellId + 1) - 1;
219  int timeindex = (int)((aECLHit ->getTimeAve()) / 100 + 40);
220  int backtag = aECLHit ->getBackgroundTag();
221 
222  if (hitTCId != TCId[ihit]) {continue;}
223  if (itimeindex != timeindex) {continue;}
224  if (backtag == 0) { SignalContribution[ihit] = SignalContribution[ihit] + hitE;}
225  else if (backtag != 0) { BKGContribution[ihit] = BKGContribution[ihit] + hitE;}
226 
227 
228  if (TCId[ihit] == hitTCId && maxEnergy[ihit][0] < hitE) {
229 
230  ieclhit[ihit][0] = hit;
231  maxEnergy[ihit][0] = hitE;
232  contribution[ihit][0] = hitE;
233  XtalId[ihit][0] = hitCellId ;
234  background_tag[ihit][0] = backtag;
235 
236  }
237 
238 
239  if (TCId[ihit] == hitTCId && maxEnergy[ihit][1] < hitE && hitE < maxEnergy[ihit][0]) {
240  ieclhit[ihit][1] = hit;
241  maxEnergy[ihit][1] = hitE;
242  contribution[ihit][1] = hitE;
243  XtalId[ihit][1] = hitCellId ;
244  background_tag[ihit][1] = backtag;
245  }
246 
247 
248  if (TCId[ihit] == hitTCId && maxEnergy[ihit][2] < hitE && hitE < maxEnergy[ihit][1]) {
249  ieclhit[ihit][2] = hit;
250  maxEnergy[ihit][2] = hitE;
251  contribution[ihit][2] = hitE;
252  XtalId[ihit][2] = hitCellId ;
253  background_tag[ihit][2] = backtag;
254 
255  }
256  }
257  //Find the relation of TRGECLDigi0 and MCParticle using ECLHit
258  for (int index = 0; index < eclHitRel.getEntries(); index++) {
259  int PrimaryIndex = -1;
260 
261  map<int, int>::iterator iter = eclPrimaryMap.find(eclHitRel[index].getFromIndex());
262 
263  if (iter != eclPrimaryMap.end()) {
264  PrimaryIndex = iter->second;
265  }
266  int eclhitRelSize = eclHitRel[index].getToIndices().size();
267  for (int pri_hit = 0; pri_hit < eclhitRelSize ; pri_hit++) {
268  int ieclHitRel = eclHitRel[index].getToIndex(pri_hit);
269  if (ieclhit[ihit][0] == ieclHitRel) {
270  TCPrimaryIndex[ihit][0] = PrimaryIndex;
271 
272  }
273  if (ieclhit[ihit][1] == ieclHitRel) {
274  TCPrimaryIndex[ihit][1] = PrimaryIndex;
275 
276  }
277  if (ieclhit[ihit][2] == ieclHitRel) {
278  TCPrimaryIndex[ihit][2] = PrimaryIndex;
279 
280  }
281  }
282  }
283 
284 
285  trackId[ihit][0] = TCPrimaryIndex[ihit][0];
286  trackId[ihit][1] = TCPrimaryIndex[ihit][1];
287  trackId[ihit][2] = TCPrimaryIndex[ihit][2];
288 
289 
290  // cout <<ihit <<" " << trackId[ihit][0] << " " << trackId[ihit][1] << " " << trackId[ihit][2] << " " << endl;
291 
292 
293  int mclist = 0;
294 
295  if (TCPrimaryIndex[ihit][0] > 0) {
296 
297  MCEnergy[ihit][0] = mcParticles[TCPrimaryIndex[ihit][0]]->getEnergy();
298  pid[ihit][0] = mcParticles[TCPrimaryIndex[ihit][0]]->getPDG();
299  px[ihit][0] = (mcParticles[TCPrimaryIndex[ihit][0]]->getMomentum()).X();
300  py[ihit][0] = (mcParticles[TCPrimaryIndex[ihit][0]]->getMomentum()).Y();
301  pz[ihit][0] = (mcParticles[TCPrimaryIndex[ihit][0]]->getMomentum()).Z();
302  if (pid[ihit][0] != 0 && (mcParticles[TCPrimaryIndex[ihit][0]]->getMother())) {
303  mother[ihit][0] = mcParticles[TCPrimaryIndex[ihit][0]]->getMother() ->getPDG();
304  mclist = mcParticles[TCPrimaryIndex[ihit][0]]->getMother()-> getIndex();
305  }
306  if (mclist != 1 && mother[ihit][0] != 0 && (mcParticles[TCPrimaryIndex[ihit][0]]->getMother()->getMother())) {
307  gmother[ihit][0] = mcParticles[TCPrimaryIndex[ihit][0]]->getMother()->getMother() ->getPDG();
308  mclist = mcParticles[TCPrimaryIndex[ihit][0]]->getMother()->getMother()-> getIndex();
309 
310  }
311  if (mclist != 1 && gmother[ihit][0] != 0 && (mcParticles[TCPrimaryIndex[ihit][0]]->getMother()->getMother()->getMother())) {
312  ggmother[ihit][0] = mcParticles[TCPrimaryIndex[ihit][0]]->getMother()->getMother()->getMother() ->getPDG();
313  mclist = mcParticles[TCPrimaryIndex[ihit][0]]->getMother()->getMother()->getMother()-> getIndex();
314 
315 
316  }
317  if (mclist != 1 && ggmother[ihit][0] != 0) {
318  if (mcParticles[TCPrimaryIndex[ihit][0]]->getMother()->getMother()->getMother()->getMother()) {
319  gggmother[ihit][0] = mcParticles[TCPrimaryIndex[ihit][0]]->getMother()->getMother()->getMother()->getMother() ->getPDG();
320 
321  }
322  }
323 
324  }
325  mclist = 0;
326  if (TCPrimaryIndex[ihit][1] > 0) {
327 
328  MCEnergy[ihit][1] = mcParticles[TCPrimaryIndex[ihit][1]]->getEnergy();
329  pid[ihit][1] = mcParticles[TCPrimaryIndex[ihit][1]]->getPDG();
330  px[ihit][1] = (mcParticles[TCPrimaryIndex[ihit][1]]->getMomentum()).X();
331  py[ihit][1] = (mcParticles[TCPrimaryIndex[ihit][1]]->getMomentum()).Y();
332  pz[ihit][1] = (mcParticles[TCPrimaryIndex[ihit][1]]->getMomentum()).Z();
333  if (pid[ihit][1] != 0 && (mcParticles[TCPrimaryIndex[ihit][1]]->getMother())) {
334  mother[ihit][1] = mcParticles[TCPrimaryIndex[ihit][1]]->getMother() ->getPDG();
335  mclist = mcParticles[TCPrimaryIndex[ihit][1]]->getMother()-> getIndex();
336  }
337  if (mclist != 1 && mother[ihit][1] != 0 && (mcParticles[TCPrimaryIndex[ihit][1]]->getMother()->getMother())) {
338  gmother[ihit][1] = mcParticles[TCPrimaryIndex[ihit][1]]->getMother()->getMother() ->getPDG();
339  mclist = mcParticles[TCPrimaryIndex[ihit][1]]->getMother()->getMother()-> getIndex();
340 
341  }
342  if (mclist != 1 && gmother[ihit][1] != 0 && (mcParticles[TCPrimaryIndex[ihit][1]]->getMother()->getMother()->getMother())) {
343  ggmother[ihit][1] = mcParticles[TCPrimaryIndex[ihit][1]]->getMother()->getMother()->getMother() ->getPDG();
344  mclist = mcParticles[TCPrimaryIndex[ihit][1]]->getMother()->getMother()->getMother()-> getIndex();
345  }
346  if (mclist != 1 && ggmother[ihit][1] != 0) {
347  if (mcParticles[TCPrimaryIndex[ihit][1]]->getMother()->getMother()->getMother()->getMother()) {
348  gggmother[ihit][1] = mcParticles[TCPrimaryIndex[ihit][1]]->getMother()->getMother()->getMother()->getMother() ->getPDG();
349  }
350  }
351  }
352  mclist = 0;
353  if (TCPrimaryIndex[ihit][2] > 0) {
354 
355  MCEnergy[ihit][2] = mcParticles[TCPrimaryIndex[ihit][2]]->getEnergy();
356  pid[ihit][2] = mcParticles[TCPrimaryIndex[ihit][2]]->getPDG();
357  px[ihit][2] = (mcParticles[TCPrimaryIndex[ihit][2]]->getMomentum()).X();
358  py[ihit][2] = (mcParticles[TCPrimaryIndex[ihit][2]]->getMomentum()).Y();
359  pz[ihit][2] = (mcParticles[TCPrimaryIndex[ihit][2]]->getMomentum()).Z();
360  if (pid[ihit][2] != 0 && (mcParticles[TCPrimaryIndex[ihit][2]]->getMother())) {
361  mother[ihit][2] = mcParticles[TCPrimaryIndex[ihit][2]]->getMother() ->getPDG();
362  mclist = mcParticles[TCPrimaryIndex[ihit][2]]->getMother()-> getIndex();
363  }
364  if (mclist != 1 && mother[ihit][2] != 0 && (mcParticles[TCPrimaryIndex[ihit][2]]->getMother()->getMother())) {
365  gmother[ihit][2] = mcParticles[TCPrimaryIndex[ihit][2]]->getMother()->getMother() ->getPDG();
366  mclist = mcParticles[TCPrimaryIndex[ihit][2]]->getMother()->getMother()-> getIndex();
367 
368  }
369  if (mclist != 1 && gmother[ihit][2] != 0 && (mcParticles[TCPrimaryIndex[ihit][2]]->getMother()->getMother()->getMother())) {
370  ggmother[ihit][2] = mcParticles[TCPrimaryIndex[ihit][2]]->getMother()->getMother()->getMother() ->getPDG();
371  mclist = mcParticles[TCPrimaryIndex[ihit][2]]->getMother()->getMother()->getMother()-> getIndex();
372  }
373  if (mclist != 1 && ggmother[ihit][2] != 0) {
374  if (mcParticles[TCPrimaryIndex[ihit][2]]->getMother()->getMother()->getMother()->getMother()) {
375  gggmother[ihit][2] = mcParticles[TCPrimaryIndex[ihit][2]]->getMother()->getMother()->getMother()->getMother() ->getPDG();
376  }
377  }
378 
379  }
380  trgeclDigi0ToMCPart.add(ii, TCPrimaryIndex[ihit][0]);
381  ihit++;
382  }
383 
384 
385  int m_hitNum = 0;
386  StoreArray<TRGECLDigi0MC> TCDigiArray;
387  for (int ii = 0; ii < ihit; ii++) {
388 
389  if (TCRawEnergy[ii] < 0.1) {continue;}
390  TCDigiArray.appendNew();
391  m_hitNum = TCDigiArray.getEntries() - 1;
392 
393  TCDigiArray[m_hitNum]->setEventId(m_nEvent);
394  TCDigiArray[m_hitNum]->setTCId(TCId[ii]);
395 
396  TCDigiArray[m_hitNum]->setRawEnergy(TCRawEnergy[ii]);
397  TCDigiArray[m_hitNum]->setRawTiming(TCRawTiming[ii]);
398  TCDigiArray[m_hitNum]->setTrackId(trackId[ii]);
399  TCDigiArray[m_hitNum]->setCellId(XtalId[ii]);
400 
401  TCDigiArray[m_hitNum]->setPDG(pid[ii]);
402  TCDigiArray[m_hitNum]->setMother(mother[ii]);
403  TCDigiArray[m_hitNum]->setGMother(gmother[ii]);
404  TCDigiArray[m_hitNum]->setGGMother(ggmother[ii]);
405  TCDigiArray[m_hitNum]->setGGGMother(gggmother[ii]);
406 
407  TCDigiArray[m_hitNum]->setPX(px[ii]);
408  TCDigiArray[m_hitNum]->setPY(py[ii]);
409  TCDigiArray[m_hitNum]->setPZ(pz[ii]);
410  TCDigiArray[m_hitNum]->setMCEnergy(MCEnergy[ii]);
411  TCDigiArray[m_hitNum]->setContribution(contribution[ii]);
412  TCDigiArray[m_hitNum]->setBackgroundTag(background_tag[ii]);
413  TCDigiArray[m_hitNum]->setSignalContribution(SignalContribution[ii]);
414  TCDigiArray[m_hitNum]->setBKGContribution(BKGContribution[ii]);
415  }
416 
417  //Find relation of TRGECLHit and MCParticle using TRGECLDigi0
418 
419  StoreArray<TRGECLHit> trgeclHitArray;
420  RelationArray trgeclHitToMCPart(trgeclHitArray, mcParticles);
421  const int NofTCHit = trgeclHitArray.getEntries();
422 
423 
424  for (int ii = 0; ii < NofTCHit; ii++) {
425 
426  TRGECLHit* aTRGECLHit = trgeclHitArray[ii];
427  TCIdHit[ii] = (aTRGECLHit->getTCId() - 1);
428  TCHitTiming[ii] = aTRGECLHit ->getTimeAve();
429  TCHitEnergy[ii] = aTRGECLHit -> getEnergyDep();
430  int itimeindex = (int)(TCHitTiming[ii] / 100 + 40);
431 
432  for (int index = 0; index < trgeclDigi0ToMCPart.getEntries(); index++) {
433  int idigi = index;
434  int idigitimeindex = (int)(TCRawTiming[idigi] / 100 + 40);
435  if (TCId[idigi] != TCIdHit[ii]) {continue;}
436  if (itimeindex != idigitimeindex) {continue;}
437 
438  TCPrimaryIndexHit[ii][0] = TCPrimaryIndex[idigi][0];
439  contributionHit[ii][0] = contribution[idigi][0];
440  XtalIdHit[ii][0] = XtalId[idigi][0] ;
441 
442  TCPrimaryIndexHit[ii][1] = TCPrimaryIndex[idigi][1];
443  contributionHit[ii][1] = contribution[idigi][1];
444  XtalIdHit[ii][1] = XtalId[idigi][1] ;
445 
446  TCPrimaryIndexHit[ii][2] = TCPrimaryIndex[idigi][2];
447  contributionHit[ii][2] = contribution[idigi][2];
448  XtalIdHit[ii][2] = XtalId[idigi][2] ;
449 
450  background_tagHit[ii][0] = background_tag[idigi][0] ;
451  background_tagHit[ii][1] = background_tag[idigi][1] ;
452  background_tagHit[ii][2] = background_tag[idigi][2] ;
453 
455  ;
456  BKGContributionHit[ii] = BKGContribution[idigi];
457 
458 
459  trackIdHit[ii][0] = trackId[idigi][0];
460  trackIdHit[ii][1] = trackId[idigi][0];
461  trackIdHit[ii][2] = trackId[idigi][0];
462 
463  MCEnergyHit[ii][0] = MCEnergy[idigi][0];
464  pidHit[ii][0] = pid[idigi][0] ;
465  pxHit[ii][0] = px[idigi][0];
466  pyHit[ii][0] = py[idigi][0];
467  pzHit[ii][0] = pz[idigi][0];
468  gmotherHit[ii][0] = gmother[idigi][0];
469  ggmotherHit[ii][0] = ggmother[idigi][0];
470  gggmotherHit[ii][0] = gggmother[idigi][0];
471 
472  MCEnergyHit[ii][1] = MCEnergy[idigi][1];
473  pidHit[ii][1] = pid[idigi][1] ;
474  pxHit[ii][1] = px[idigi][1];
475  pyHit[ii][1] = py[idigi][1];
476  pzHit[ii][1] = pz[idigi][1];
477  gmotherHit[ii][1] = gmother[idigi][1];
478  ggmotherHit[ii][1] = ggmother[idigi][1];
479  gggmotherHit[ii][1] = gggmother[idigi][1];
480 
481  MCEnergyHit[ii][2] = MCEnergy[idigi][2];
482  pidHit[ii][2] = pid[idigi][2] ;
483  pxHit[ii][2] = px[idigi][2];
484  pyHit[ii][2] = py[idigi][2];
485  pzHit[ii][2] = pz[idigi][2];
486  gmotherHit[ii][2] = gmother[idigi][2];
487  ggmotherHit[ii][2] = ggmother[idigi][2];
488  gggmotherHit[ii][2] = gggmother[idigi][2];
489  }
490 
491 
492 
493  trgeclHitToMCPart.add(ii, TCPrimaryIndexHit[ii][0]);
494  }
495 
496  m_hitNum = 0;
497  StoreArray<TRGECLHitMC> TCHitArray;
498  for (int ii = 0; ii < trgeclHitArray.getEntries(); ii++) {
499  TCHitArray.appendNew();
500  m_hitNum = TCHitArray.getEntries() - 1;
501 
502  TCHitArray[m_hitNum]->setEventId(m_nEvent);
503  TCHitArray[m_hitNum]-> setTCId(TCIdHit[ii]);
504  TCHitArray[m_hitNum]->setCellId(XtalIdHit[ii]);
505  TCHitArray[m_hitNum]->setEnergyDep(TCHitEnergy[ii]);
506  TCHitArray[m_hitNum]-> setTimeAve(TCHitTiming[ii]);
507  TCHitArray[m_hitNum]-> setTrackId(trackIdHit[ii]);
508  TCHitArray[m_hitNum]-> setPDG(pidHit[ii]);
509  TCHitArray[m_hitNum]->setMother(motherHit[ii]);
510  TCHitArray[m_hitNum]->setGMother(gmotherHit[ii]);
511  TCHitArray[m_hitNum]->setGGMother(ggmotherHit[ii]);
512  TCHitArray[m_hitNum]->setGGGMother(gggmotherHit[ii]);
513  TCHitArray[m_hitNum]->setPX(pxHit[ii]);
514  TCHitArray[m_hitNum]->setPY(pyHit[ii]);
515  TCHitArray[m_hitNum]->setPZ(pzHit[ii]);
516  TCHitArray[m_hitNum]->setMCEnergy(MCEnergyHit[ii]);
517  TCHitArray[m_hitNum]->setBackgroundTag(background_tagHit[ii]);
518  TCHitArray[m_hitNum]->setSignalContribution(SignalContributionHit[ii]);
519  TCHitArray[m_hitNum]->setBKGContribution(BKGContributionHit[ii]);
520  TCHitArray[m_hitNum]->setContribution(contributionHit[ii]);
521 
522  }
523 
524  m_nEvent++;
525 
526 }

◆ getAfterConditionPath()

Module::EAfterConditionPath getAfterConditionPath ( ) const
inherited

What to do after the conditional path is finished.

(defaults to c_End if no condition is set)

Definition at line 135 of file Module.cc.

◆ getConditionPath()

std::shared_ptr< Path > getConditionPath ( ) const
inherited

Returns the path of the last true condition (if there is at least one, else reaturn a null pointer).


Definition at line 115 of file Module.cc.

◆ getFileNames()

virtual std::vector<std::string> getFileNames ( __attribute__((unused)) bool  outputFiles)
inlinevirtualinherited

Return a list of output filenames for this modules.

This will be called when basf2 is run with "--dry-run" if the module has set either the c_Input or c_Output properties.

If the parameter outputFiles is false (for modules with c_Input) the list of input filenames should be returned (if any). If outputFiles is true (for modules with c_Output) the list of output files should be returned (if any).

If a module has sat both properties this member is called twice, once for each property.

The module should return the actual list of requested input or produced output filenames (including handling of input/output overrides) so that the grid system can handle input/output files correctly.

This function should return the same value when called multiple times. This is especially important when taking the input/output overrides from Environment as they get consumed when obtained so the finalized list of output files should be stored for subsequent calls.

Definition at line 136 of file Module.h.

◆ getName()

const std::string& getName ( ) const
inlineinherited

Returns the name of the module.

This can be changed via e.g. set_name() in the steering file to give more useful names if there is more than one module of the same type.

For identifying the type of a module, using getType() (or type() in Python) is recommended.

Definition at line 189 of file Module.h.

◆ getParamInfoListPython()

std::shared_ptr< boost::python::list > getParamInfoListPython ( ) const
inherited

Returns a python list of all parameters.

Each item in the list consists of the name of the parameter, a string describing its type, a python list of all default values and the description of the parameter.

Returns
A python list containing the parameters of this parameter list.

Definition at line 281 of file Module.cc.

◆ getReturnValue()

int getReturnValue ( ) const
inlineinherited

Return the return value set by this module.

This value is only meaningful if hasReturnValue() is true

Definition at line 383 of file Module.h.

◆ getType()

const std::string & getType ( ) const
inherited

Returns the type of the module (i.e.

class name minus 'Module')

Definition at line 43 of file Module.cc.

◆ hasProperties()

bool hasProperties ( unsigned int  propertyFlags) const
inherited

Returns true if all specified property flags are available in this module.

Parameters
propertyFlagsOred EModulePropFlags which should be compared with the module flags.

Definition at line 162 of file Module.cc.

◆ if_false()

void if_false ( const std::shared_ptr< Path > &  path,
EAfterConditionPath  afterConditionPath = EAfterConditionPath::c_End 
)
inherited

A simplified version to add a condition to the module.

Please note that successive calls of this function will add more than one condition to the module. If more than one condition results in true, only the last of them will be used.

Please be careful: Avoid creating cyclic paths, e.g. by linking a condition to a path which is processed before the path where this module is located in.

It is equivalent to the if_value() method, using the expression "<1". This method is meant to be used together with the setReturnValue(bool value) method.

Parameters
pathShared pointer to the Path which will be executed if the return value is false.
afterConditionPathWhat to do after executing 'path'.

Definition at line 87 of file Module.cc.

◆ if_true()

void if_true ( const std::shared_ptr< Path > &  path,
EAfterConditionPath  afterConditionPath = EAfterConditionPath::c_End 
)
inherited

A simplified version to set the condition of the module.

Please note that successive calls of this function will add more than one condition to the module. If more than one condition results in true, only the last of them will be used.

Please be careful: Avoid creating cyclic paths, e.g. by linking a condition to a path which is processed before the path where this module is located in.

It is equivalent to the if_value() method, using the expression ">=1". This method is meant to be used together with the setReturnValue(bool value) method.

Parameters
pathShared pointer to the Path which will be executed if the return value is true.
afterConditionPathWhat to do after executing 'path'.

Definition at line 92 of file Module.cc.

◆ if_value()

void if_value ( const std::string &  expression,
const std::shared_ptr< Path > &  path,
EAfterConditionPath  afterConditionPath = EAfterConditionPath::c_End 
)
inherited

Add a condition to the module.

Please note that successive calls of this function will add more than one condition to the module. If more than one condition results in true, only the last of them will be used.

See https://confluence.desy.de/display/BI/Software+ModCondTut or ModuleCondition for a description of the syntax.

Please be careful: Avoid creating cyclic paths, e.g. by linking a condition to a path which is processed before the path where this module is located in.

Parameters
expressionThe expression of the condition.
pathShared pointer to the Path which will be executed if the condition is evaluated to true.
afterConditionPathWhat to do after executing 'path'.

Definition at line 81 of file Module.cc.

◆ setDescription()

void setDescription ( const std::string &  description)
protectedinherited

Sets the description of the module.

Parameters
descriptionA description of the module.

Definition at line 216 of file Module.cc.

◆ setLogInfo()

void setLogInfo ( int  logLevel,
unsigned int  logInfo 
)
inherited

Configure the printed log information for the given level.

Parameters
logLevelThe log level (one of LogConfig::ELogLevel)
logInfoWhat kind of info should be printed? ORed combination of LogConfig::ELogInfo flags.

Definition at line 75 of file Module.cc.

◆ setName()

void setName ( const std::string &  name)
inlineinherited

Set the name of the module.

Note
The module name is set when using the REG_MODULE macro, but the module can be renamed before calling process() using the set_name() function in your steering file.
Parameters
nameThe name of the module

Definition at line 216 of file Module.h.

◆ setParamPython()

void setParamPython ( const std::string &  name,
const boost::python::object &  pyObj 
)
privateinherited

Implements a method for setting boost::python objects.

The method supports the following types: list, dict, int, double, string, bool The conversion of the python object to the C++ type and the final storage of the parameter value is done in the ModuleParam class.

Parameters
nameThe unique name of the parameter.
pyObjThe object which should be converted and stored as the parameter value.

Definition at line 236 of file Module.cc.

◆ setParamPythonDict()

void setParamPythonDict ( const boost::python::dict &  dictionary)
privateinherited

Implements a method for reading the parameter values from a boost::python dictionary.

The key of the dictionary has to be the name of the parameter and the value has to be of one of the supported parameter types.

Parameters
dictionaryThe python dictionary from which the parameter values are read.

Definition at line 251 of file Module.cc.

◆ setPropertyFlags()

void setPropertyFlags ( unsigned int  propertyFlags)
inherited

Sets the flags for the module properties.

Parameters
propertyFlagsbitwise OR of EModulePropFlags

Definition at line 210 of file Module.cc.

◆ setReturnValue() [1/2]

void setReturnValue ( bool  value)
protectedinherited

Sets the return value for this module as bool.

The bool value is saved as an integer with the convention 1 meaning true and 0 meaning false. The value can be used in the steering file to divide the analysis chain into several paths.

Parameters
valueThe value of the return value.

Definition at line 229 of file Module.cc.

◆ setReturnValue() [2/2]

void setReturnValue ( int  value)
protectedinherited

Sets the return value for this module as integer.

The value can be used in the steering file to divide the analysis chain into several paths.

Parameters
valueThe value of the return value.

Definition at line 222 of file Module.cc.

◆ setType()

void setType ( const std::string &  type)
protectedinherited

Set the module type.

Only for use by internal modules (which don't use the normal REG_MODULE mechanism).

Definition at line 50 of file Module.cc.


The documentation for this class was generated from the following files:
Belle2::StoreArray::appendNew
T * appendNew()
Construct a new T object at the end of the array.
Definition: StoreArray.h:256
Belle2::MCMatcherTRGECLModule::XtalId
int XtalId[100][3]
XtalId in TC
Definition: MCMatcherTRGECLModule.h:104
Belle2::MCMatcherTRGECLModule::pidHit
int pidHit[100][3]
Particle ID.
Definition: MCMatcherTRGECLModule.h:151
Belle2::MCMatcherTRGECLModule::py
double py[100][3]
Momentum Y of particle.
Definition: MCMatcherTRGECLModule.h:108
Belle2::RelationArray
Low-level class to create/modify relations between StoreArrays.
Definition: RelationArray.h:72
Belle2::MCMatcherTRGECLModule::contributionHit
double contributionHit[100][3]
particles contribution
Definition: MCMatcherTRGECLModule.h:167
Belle2::MCMatcherTRGECLModule::trackId
int trackId[100][3]
Track Id.
Definition: MCMatcherTRGECLModule.h:112
Belle2::TRGECLDigi0::getTCId
int getTCId() const
Get TC id.
Definition: TRGECLDigi0.h:62
Belle2::MCMatcherTRGECLModule::pzHit
double pzHit[100][3]
Momentum X of particle.
Definition: MCMatcherTRGECLModule.h:145
Belle2::MCMatcherTRGECLModule::TCRawTiming
double TCRawTiming[100]
TC raw timing.
Definition: MCMatcherTRGECLModule.h:92
Belle2::MCMatcherTRGECLModule::TCPrimaryIndex
int TCPrimaryIndex[100][3]
Primary Index in TC hit
Definition: MCMatcherTRGECLModule.h:102
Belle2::MCMatcherTRGECLModule::XtalIdHit
int XtalIdHit[100][3]
XtalId in TC
Definition: MCMatcherTRGECLModule.h:139
Belle2::ECLHit::getCellId
int getCellId() const
Get Cell ID.
Definition: ECLHit.h:76
Belle2::MCMatcherTRGECLModule::background_tag
int background_tag[100][3]
Beam background tag.
Definition: MCMatcherTRGECLModule.h:114
Belle2::ECLHit::getEnergyDep
double getEnergyDep() const
Get deposit energy.
Definition: ECLHit.h:81
Belle2::MCMatcherTRGECLModule::mother
int mother[100][3]
Mother ID
Definition: MCMatcherTRGECLModule.h:118
Belle2::MCMatcherTRGECLModule::TCHitEnergy
double TCHitEnergy[100]
TC Hit energy
Definition: MCMatcherTRGECLModule.h:133
Belle2::TRGECLHit
Example Detector.
Definition: TRGECLHit.h:26
Belle2::MCMatcherTRGECLModule::pz
double pz[100][3]
Momentum Z of particle.
Definition: MCMatcherTRGECLModule.h:110
Belle2::MCMatcherTRGECLModule::pxHit
double pxHit[100][3]
Momentum X of particle.
Definition: MCMatcherTRGECLModule.h:141
Belle2::TRGECLDigi0::getRawEnergy
double getRawEnergy() const
Get Energy and Timing Get raw TC energy.
Definition: TRGECLDigi0.h:67
Belle2::MCMatcherTRGECLModule::gggmother
int gggmother[100][3]
Grand Grand Grand Mother ID
Definition: MCMatcherTRGECLModule.h:124
Belle2::MCMatcherTRGECLModule::pid
int pid[100][3]
Particle ID.
Definition: MCMatcherTRGECLModule.h:116
Belle2::MCMatcherTRGECLModule::ggmotherHit
int ggmotherHit[100][3]
Grand Grand Mother ID
Definition: MCMatcherTRGECLModule.h:157
Belle2::MCMatcherTRGECLModule::gmother
int gmother[100][3]
Grand mother ID
Definition: MCMatcherTRGECLModule.h:120
Belle2::MCMatcherTRGECLModule::ieclhit
int ieclhit[100][3]
eclhit id
Definition: MCMatcherTRGECLModule.h:129
Belle2::MCMatcherTRGECLModule::TCPrimaryIndexHit
int TCPrimaryIndexHit[100][3]
Primary Index in TC hit
Definition: MCMatcherTRGECLModule.h:137
Belle2::MCMatcherTRGECLModule::TCIdHit
int TCIdHit[100]
TCId
Definition: MCMatcherTRGECLModule.h:131
Belle2::MCMatcherTRGECLModule::_TCMap
TrgEclMapping * _TCMap
object of TC Mapping
Definition: MCMatcherTRGECLModule.h:86
Belle2::MCMatcherTRGECLModule::BKGContribution
double BKGContribution[100]
Backgroun Contribution in a TC
Definition: MCMatcherTRGECLModule.h:96
Belle2::MCMatcherTRGECLModule::px
double px[100][3]
Momentum X of particle.
Definition: MCMatcherTRGECLModule.h:106
Belle2::MCMatcherTRGECLModule::pyHit
double pyHit[100][3]
Momentum X of particle.
Definition: MCMatcherTRGECLModule.h:143
Belle2::MCMatcherTRGECLModule::MCEnergyHit
double MCEnergyHit[100][3]
Raw Energy of particle
Definition: MCMatcherTRGECLModule.h:161
Belle2::TRGECLDigi0
Raw TC result nefor digitizing.
Definition: TRGECLDigi0.h:26
Belle2::MCMatcherTRGECLModule::motherHit
int motherHit[100][3]
Mother ID
Definition: MCMatcherTRGECLModule.h:153
Belle2::MCMatcherTRGECLModule::TCHitTiming
double TCHitTiming[100]
TC Hit Timking
Definition: MCMatcherTRGECLModule.h:135
Belle2::MCMatcherTRGECLModule::ggmother
int ggmother[100][3]
Grand Grand Mother ID
Definition: MCMatcherTRGECLModule.h:122
Belle2::MCMatcherTRGECLModule::TCRawEnergy
double TCRawEnergy[100]
TC raw energy.
Definition: MCMatcherTRGECLModule.h:90
Belle2::MCMatcherTRGECLModule::TCId
int TCId[100]
TCId
Definition: MCMatcherTRGECLModule.h:88
Belle2::MCParticle::c_StableInGenerator
@ c_StableInGenerator
bit 1: Particle is stable, i.e., not decaying in the generator.
Definition: MCParticle.h:60
Belle2::TRGECLHit::getTCId
int getTCId() const
The method to get TC id.
Definition: TRGECLHit.h:62
Belle2::MCMatcherTRGECLModule::PrimaryTrackMap
std::map< int, int > PrimaryTrackMap
define a map for Primary Track
Definition: MCMatcherTRGECLModule.h:68
Belle2::MCMatcherTRGECLModule::SignalContribution
double SignalContribution[100]
Signal Contibution in a TC.
Definition: MCMatcherTRGECLModule.h:94
Belle2::MCMatcherTRGECLModule::BKGContributionHit
double BKGContributionHit[100]
Backgroun Contribution in a TC
Definition: MCMatcherTRGECLModule.h:165
Belle2::TRGECLDigi0::getRawTiming
double getRawTiming() const
Get raw TC timing.
Definition: TRGECLDigi0.h:69
Belle2::MCMatcherTRGECLModule::gmotherHit
int gmotherHit[100][3]
Grand mother ID
Definition: MCMatcherTRGECLModule.h:155
Belle2::ECLHit
Class to store simulated hits which equate to average of ECLSImHit on crystals input for digitization...
Definition: ECLHit.h:36
Belle2::SimHitBase::getBackgroundTag
virtual unsigned short getBackgroundTag() const
Get background tag.
Definition: SimHitBase.h:56
Belle2::MCMatcherTRGECLModule::m_nEvent
int m_nEvent
Event number.
Definition: MCMatcherTRGECLModule.h:84
Belle2::TRGECLHit::getTimeAve
double getTimeAve() const
The method to get hit average time.
Definition: TRGECLHit.h:68
Belle2::MCMatcherTRGECLModule::SignalContributionHit
double SignalContributionHit[100]
Signal Contibution in a TC.
Definition: MCMatcherTRGECLModule.h:163
Belle2::StoreArray< MCParticle >
Belle2::MCMatcherTRGECLModule::trackIdHit
int trackIdHit[100][3]
Track Id.
Definition: MCMatcherTRGECLModule.h:147
Belle2::TrgEclMapping::getTCIdFromXtalId
int getTCIdFromXtalId(int)
get [TC ID] from [Xtal ID]
Definition: TrgEclMapping.cc:36
Belle2::MCMatcherTRGECLModule::maxEnergy
double maxEnergy[100][3]
Energy of maximum contribtion particle
Definition: MCMatcherTRGECLModule.h:98
Belle2::MCMatcherTRGECLModule::contribution
double contribution[100][3]
particles contribution
Definition: MCMatcherTRGECLModule.h:100
Belle2::Unit::GeV
static const double GeV
Standard of [energy, momentum, mass].
Definition: Unit.h:61
Belle2::MCMatcherTRGECLModule::MCEnergy
double MCEnergy[100][3]
Raw Energy of particle
Definition: MCMatcherTRGECLModule.h:127
Belle2::StoreArray::getEntries
int getEntries() const
Get the number of objects in the array.
Definition: StoreArray.h:226
Belle2::MCParticle::c_PrimaryParticle
@ c_PrimaryParticle
bit 0: Particle is primary particle.
Definition: MCParticle.h:58
Belle2::MCMatcherTRGECLModule::gggmotherHit
int gggmotherHit[100][3]
Grand Grand Grand Mother ID
Definition: MCMatcherTRGECLModule.h:159
Belle2::MCMatcherTRGECLModule::background_tagHit
int background_tagHit[100][3]
Beam background tag.
Definition: MCMatcherTRGECLModule.h:149