◆ addHitCollections()
template<class collT >
void TrackCollHandle_SimulationTracks::Imp::addHitCollections |
( |
std::map< SimBarCode, SimHitList > & |
hitLists | ) |
|
Definition at line 136 of file TrackCollHandle_SimulationTracks.cxx.
144 const collT * hitColl;
146 if (!sgaccess.retrieve(hitColl,
key)) {
147 theclass->
message(
"Error: Could not retrieve "+QString(
typeid(collT).
name())+
" collection with key = "+
key);
151 typename collT::const_iterator
it,
itE(hitColl->end());
152 int itot(0), iadded(0);
164 itHitList = hitLists.find(trackID);
165 if ( itHitList == hitLists.end() ) {
167 l.push_back(std::pair<double,SimHitHandleBase*>(handle->
hitTime(),handle));
168 hitLists[trackID] =
l;
170 itHitList->second.emplace_back(handle->
hitTime(),handle);
◆ createHitHandle()
◆ loadHitLists()
bool TrackCollHandle_SimulationTracks::Imp::loadHitLists |
( |
std::map< SimBarCode, SimHitList > & |
hitLists | ) |
|
Definition at line 180 of file TrackCollHandle_SimulationTracks.cxx.
184 addHitCollections<SimulationHitCollection>(hitLists);
191 for (
it = hitLists.begin();
it!=
itE; ++
it) {
192 if (
it->first.unknownPdgCode())
199 for (;itHit!=itHitE;++itHit)
200 itHit->second->setCharge(
charge);
205 for (
it = hitLists.begin();
it!=
itE; ++
it) {
206 sort(
it->second.begin(),
it->second.end());
◆ possiblyUpdateGUI()
void TrackCollHandle_SimulationTracks::Imp::possiblyUpdateGUI |
( |
| ) |
|
|
inline |
◆ updateVisibleAssociatedObjects()
void TrackCollHandle_SimulationTracks::Imp::updateVisibleAssociatedObjects |
( |
| ) |
const |
◆ cut_excludeBarcodeZero
bool TrackCollHandle_SimulationTracks::Imp::cut_excludeBarcodeZero = false |
◆ cut_excludeNeutrals
bool TrackCollHandle_SimulationTracks::Imp::cut_excludeNeutrals = false |
◆ cut_fromIROnly
bool TrackCollHandle_SimulationTracks::Imp::cut_fromIROnly = false |
◆ displayAscObjs
bool TrackCollHandle_SimulationTracks::Imp::displayAscObjs = false |
◆ extBarCode2pdg
◆ maxPdgCode
const int TrackCollHandle_SimulationTracks::Imp::maxPdgCode = 1000000000 |
|
static |
◆ theclass
◆ updateGUICounter
int TrackCollHandle_SimulationTracks::Imp::updateGUICounter = 0 |
The documentation for this class was generated from the following file:
QStringList getKeys() const
static double particleCharge(const int &pdgcode, bool &ok)