SND@LHC Software
Loading...
Searching...
No Matches
Hit2MCPoints Class Reference

#include <Hit2MCPoints.h>

Inheritance diagram for Hit2MCPoints:
Collaboration diagram for Hit2MCPoints:

Public Member Functions

 Hit2MCPoints ()
 Hit2MCPoints (const Hit2MCPoints &ti)
void Add (int detID, int key, float w)
virtual ~Hit2MCPoints ()
unsigned int N (int detID)
std::unordered_map< int, float > wList (int detID)
virtual void Print (const Option_t *opt="") const
template<class Archive>
void serialize (Archive &ar, const unsigned int version)

Protected Member Functions

 ClassDef (Hit2MCPoints, 1)

Protected Attributes

std::unordered_map< int, std::unordered_map< int, float > > linksToMCPoints
 array of detector elements with list of contributing MCPoints

Friends

class boost::serialization::access

Detailed Description

Definition at line 13 of file Hit2MCPoints.h.

Constructor & Destructor Documentation

◆ Hit2MCPoints() [1/2]

Hit2MCPoints::Hit2MCPoints ( )

Default constructor

Definition at line 5 of file Hit2MCPoints.cxx.

6 : TObject()
7{
8}

◆ Hit2MCPoints() [2/2]

Hit2MCPoints::Hit2MCPoints ( const Hit2MCPoints & ti)

Copy constructor

Definition at line 17 of file Hit2MCPoints.cxx.

18 : TObject(ti),
20{
21}
std::unordered_map< int, std::unordered_map< int, float > > linksToMCPoints
array of detector elements with list of contributing MCPoints

◆ ~Hit2MCPoints()

Hit2MCPoints::~Hit2MCPoints ( )
virtual

Destructor

Definition at line 23 of file Hit2MCPoints.cxx.

23{ }

Member Function Documentation

◆ Add()

void Hit2MCPoints::Add ( int detID,
int key,
float w )

Definition at line 11 of file Hit2MCPoints.cxx.

◆ ClassDef()

Hit2MCPoints::ClassDef ( Hit2MCPoints ,
1  )
protected

◆ N()

unsigned int Hit2MCPoints::N ( int detID)
inline

Accessors

Definition at line 30 of file Hit2MCPoints.h.

30{return linksToMCPoints[detID].size();}

◆ Print()

virtual void Hit2MCPoints::Print ( const Option_t * opt = "") const
inlinevirtual

Definition at line 34 of file Hit2MCPoints.h.

34{;}

◆ serialize()

template<class Archive>
void Hit2MCPoints::serialize ( Archive & ar,
const unsigned int version )
inline

Definition at line 37 of file Hit2MCPoints.h.

38 {
39 ar& boost::serialization::base_object<TObject>(*this);
41 }

◆ wList()

std::unordered_map< int, float > Hit2MCPoints::wList ( int detID)
inline

Definition at line 31 of file Hit2MCPoints.h.

31{return linksToMCPoints[detID];}

◆ boost::serialization::access

friend class boost::serialization::access
friend

Definition at line 45 of file Hit2MCPoints.h.

Member Data Documentation

◆ linksToMCPoints

std::unordered_map<int,std::unordered_map<int,float> > Hit2MCPoints::linksToMCPoints
protected

array of detector elements with list of contributing MCPoints

Definition at line 47 of file Hit2MCPoints.h.


The documentation for this class was generated from the following files: