3 #define R__DICTIONARY_FILENAME TrackPidAssoc_Dict
4 #define R__NO_DEPRECATION
15 #include "TDictAttributeMap.h"
16 #include "TInterpreter.h"
19 #include "TMemberInspector.h"
20 #include "TInterpreter.h"
21 #include "TVirtualMutex.h"
28 #include "RtypesImp.h"
29 #include "TIsAProxy.h"
30 #include "TFileMergeInfo.h"
32 #include "TCollectionProxyInfo.h"
35 #include "TDataMember.h"
38 namespace std {}
using namespace std;
41 #include "/sphenix/u/weihuma/analysis/TrackPid/src/TrackPidAssoc.h"
56 static ::TVirtualIsAProxy* isa_proxy = new ::TInstrumentedIsAProxy< ::TrackPidAssoc >(0);
57 static ::ROOT::TGenericClassInfo
58 instance(
"TrackPidAssoc", ::TrackPidAssoc::Class_Version(),
"", 23,
59 typeid(::
TrackPidAssoc), ::ROOT::Internal::DefineBehavior(ptr, ptr),
60 &::TrackPidAssoc::Dictionary, isa_proxy, 4,
78 atomic_TClass_ptr TrackPidAssoc::fgIsA(0);
81 const char *TrackPidAssoc::Class_Name()
83 return "TrackPidAssoc";
87 const char *TrackPidAssoc::ImplFileName()
93 int TrackPidAssoc::ImplFileLine()
99 TClass *TrackPidAssoc::Dictionary()
106 TClass *TrackPidAssoc::Class()
113 void TrackPidAssoc::Streamer(TBuffer &R__b)
117 if (R__b.IsReading()) {
118 R__b.ReadClassBuffer(TrackPidAssoc::Class(),
this);
120 R__b.WriteClassBuffer(TrackPidAssoc::Class(),
this);
130 return p ?
new(
p) ::
TrackPidAssoc[nElements] : new ::TrackPidAssoc[nElements];
140 typedef ::TrackPidAssoc current_t;
141 ((current_t*)p)->~current_t();
157 multimap<unsigned int,unsigned int> *ptr = 0;
158 static ::TVirtualIsAProxy* isa_proxy = new ::TIsAProxy(
typeid(multimap<unsigned int,unsigned int>));
159 static ::ROOT::TGenericClassInfo
160 instance(
"multimap<unsigned int,unsigned int>", -2,
"map", 99,
161 typeid(multimap<unsigned int,unsigned int>), ::ROOT::Internal::DefineBehavior(ptr, ptr),
163 sizeof(multimap<unsigned int,unsigned int>) );
169 instance.AdoptCollectionProxyInfo(TCollectionProxyInfo::Generate(TCollectionProxyInfo::MapInsert< multimap<unsigned int,unsigned int> >()));
171 ::ROOT::AddClassAlternate(
"multimap<unsigned int,unsigned int>",
"std::multimap<unsigned int, unsigned int, std::less<unsigned int>, std::allocator<std::pair<unsigned int const, unsigned int> > >");
192 return p ? ::new((::ROOT::Internal::TOperatorNewHelper*)p) multimap<unsigned int,unsigned int> :
new multimap<unsigned int,unsigned int>;
195 return p ? ::new((::ROOT::Internal::TOperatorNewHelper*)p) multimap<unsigned int,unsigned int>[nElements] :
new multimap<unsigned int,unsigned int>[nElements];
199 delete ((multimap<unsigned int,unsigned int>*)p);
202 delete [] ((multimap<unsigned int,unsigned int>*)p);
205 typedef multimap<unsigned int,unsigned int> current_t;
206 ((current_t*)p)->~current_t();
211 void TriggerDictionaryInitialization_TrackPidAssoc_Dict_Impl() {
212 static const char*
headers[] = {
216 static const char* includePaths[] = {
219 static const char* fwdDeclCode = R
"DICTFWDDCLS(
#line 1 "TrackPidAssoc_Dict dictionary forward declarations' payload"
#pragma clang diagnostic ignored "-Wkeyword-compat"
#pragma clang diagnostic ignored "-Wignored-attributes"
#pragma clang diagnostic ignored "-Wreturn-type-c-linkage"
extern int __Cling_AutoLoading_Map;
class TrackPidAssoc;
)DICTFWDDCLS";
220 static const char* payloadCode = R
"DICTPAYLOAD(
#line 1 "TrackPidAssoc_Dict dictionary payload"
#define _BACKWARD_BACKWARD_WARNING_H
// Inline headers
/**
* @file trackbase/TrkrClusterHitAssoc.h
* @author D. McGlinchey
* @date June 2018
* @brief Class for associating clusters to the hits that went into them
*/
#ifndef TRACKPID_TRACKPIDASSOC_H
#define TRACKPID_TRACKPIDASSOC_H
#include <phool/PHObject.h>
#include <iostream> // for cout, ostream
#include <map>
#include <utility> // for pair
/**
* @brief Class for associating particle ID categories to tracks
*
* Store the associations between particle ID categories and tracks
*/
class TrackPidAssoc : public PHObject
{
public:
//! typedefs for convenience
typedef std::multimap<unsigned int, unsigned int> MMap;
typedef MMap::iterator Iterator;
typedef MMap::const_iterator ConstIterator;
typedef std::pair<Iterator, Iterator> Range;
typedef std::pair<ConstIterator, ConstIterator> ConstRange;
//! ctor
TrackPidAssoc();
//! dtor
virtual ~TrackPidAssoc();
void Reset();
void identify(std::ostream &os = std::cout) const;
/**
* @brief Add association between particle ID and track
* @param[in] PID index
* @param[in] Index of the track
*/
void addAssoc(unsigned int pid, unsigned int trid);
/**
* @brief Get all the tracks associated with PID index
* @param[in] pid particle id index
* @param[out] Range of tracks associated with pid
*/
ConstRange getTracks(unsigned int pid);
static const unsigned int electron = 1;
static const unsigned int hadron = 2;
private:
MMap m_map;
ClassDef(TrackPidAssoc, 1);
};
#endif // TRACKPID_TRACKPIDASSOC_H
#undef _BACKWARD_BACKWARD_WARNING_H
)DICTPAYLOAD";
221 static const char* classesHeaders[] = {
222 "TrackPidAssoc", payloadCode,
"@",
225 static bool isInitialized =
false;
226 if (!isInitialized) {
227 TROOT::RegisterModule(
"TrackPidAssoc_Dict",
228 headers, includePaths, payloadCode, fwdDeclCode,
229 TriggerDictionaryInitialization_TrackPidAssoc_Dict_Impl, {}, classesHeaders,
false);
230 isInitialized =
true;
233 static struct DictInit {
235 TriggerDictionaryInitialization_TrackPidAssoc_Dict_Impl();
237 } __TheDictionaryInitializer;
240 TriggerDictionaryInitialization_TrackPidAssoc_Dict_Impl();