Analysis Software
Documentation for sPHENIX simulation software
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
TrackPidAssoc_Dict.cc
Go to the documentation of this file. Or view the newest version in sPHENIX GitHub for file TrackPidAssoc_Dict.cc
1 // Do NOT change. Changes will be lost next time file is generated
2 
3 #define R__DICTIONARY_FILENAME TrackPidAssoc_Dict
4 #define R__NO_DEPRECATION
5 
6 /*******************************************************************/
7 #include <stddef.h>
8 #include <stdio.h>
9 #include <stdlib.h>
10 #include <string.h>
11 #include <assert.h>
12 #define G__DICTIONARY
13 #include "RConfig.h"
14 #include "TClass.h"
15 #include "TDictAttributeMap.h"
16 #include "TInterpreter.h"
17 #include "TROOT.h"
18 #include "TBuffer.h"
19 #include "TMemberInspector.h"
20 #include "TInterpreter.h"
21 #include "TVirtualMutex.h"
22 #include "TError.h"
23 
24 #ifndef G__ROOT
25 #define G__ROOT
26 #endif
27 
28 #include "RtypesImp.h"
29 #include "TIsAProxy.h"
30 #include "TFileMergeInfo.h"
31 #include <algorithm>
32 #include "TCollectionProxyInfo.h"
33 /*******************************************************************/
34 
35 #include "TDataMember.h"
36 
37 // The generated code does not explicitly qualifies STL entities
38 namespace std {} using namespace std;
39 
40 // Header files passed as explicit arguments
41 #include "/sphenix/u/weihuma/analysis/TrackPid/src/TrackPidAssoc.h"
42 
43 // Header files passed via #pragma extra_include
44 
45 namespace ROOT {
46  static void *new_TrackPidAssoc(void *p = 0);
47  static void *newArray_TrackPidAssoc(Long_t size, void *p);
48  static void delete_TrackPidAssoc(void *p);
49  static void deleteArray_TrackPidAssoc(void *p);
50  static void destruct_TrackPidAssoc(void *p);
51 
52  // Function generating the singleton type initializer
53  static TGenericClassInfo *GenerateInitInstanceLocal(const ::TrackPidAssoc*)
54  {
55  ::TrackPidAssoc *ptr = 0;
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,
61  sizeof(::TrackPidAssoc) );
62  instance.SetNew(&new_TrackPidAssoc);
63  instance.SetNewArray(&newArray_TrackPidAssoc);
64  instance.SetDelete(&delete_TrackPidAssoc);
65  instance.SetDeleteArray(&deleteArray_TrackPidAssoc);
66  instance.SetDestructor(&destruct_TrackPidAssoc);
67  return &instance;
68  }
69  TGenericClassInfo *GenerateInitInstance(const ::TrackPidAssoc*)
70  {
72  }
73  // Static variable to force the class initialization
74  static ::ROOT::TGenericClassInfo *_R__UNIQUE_DICT_(Init) = GenerateInitInstanceLocal((const ::TrackPidAssoc*)0x0); R__UseDummy(_R__UNIQUE_DICT_(Init));
75 } // end of namespace ROOT
76 
77 //______________________________________________________________________________
78 atomic_TClass_ptr TrackPidAssoc::fgIsA(0); // static to hold class pointer
79 
80 //______________________________________________________________________________
81 const char *TrackPidAssoc::Class_Name()
82 {
83  return "TrackPidAssoc";
84 }
85 
86 //______________________________________________________________________________
87 const char *TrackPidAssoc::ImplFileName()
88 {
89  return ::ROOT::GenerateInitInstanceLocal((const ::TrackPidAssoc*)0x0)->GetImplFileName();
90 }
91 
92 //______________________________________________________________________________
93 int TrackPidAssoc::ImplFileLine()
94 {
95  return ::ROOT::GenerateInitInstanceLocal((const ::TrackPidAssoc*)0x0)->GetImplFileLine();
96 }
97 
98 //______________________________________________________________________________
99 TClass *TrackPidAssoc::Dictionary()
100 {
101  fgIsA = ::ROOT::GenerateInitInstanceLocal((const ::TrackPidAssoc*)0x0)->GetClass();
102  return fgIsA;
103 }
104 
105 //______________________________________________________________________________
106 TClass *TrackPidAssoc::Class()
107 {
108  if (!fgIsA.load()) { R__LOCKGUARD(gInterpreterMutex); fgIsA = ::ROOT::GenerateInitInstanceLocal((const ::TrackPidAssoc*)0x0)->GetClass(); }
109  return fgIsA;
110 }
111 
112 //______________________________________________________________________________
113 void TrackPidAssoc::Streamer(TBuffer &R__b)
114 {
115  // Stream an object of class TrackPidAssoc.
116 
117  if (R__b.IsReading()) {
118  R__b.ReadClassBuffer(TrackPidAssoc::Class(),this);
119  } else {
120  R__b.WriteClassBuffer(TrackPidAssoc::Class(),this);
121  }
122 }
123 
124 namespace ROOT {
125  // Wrappers around operator new
126  static void *new_TrackPidAssoc(void *p) {
127  return p ? new(p) ::TrackPidAssoc : new ::TrackPidAssoc;
128  }
129  static void *newArray_TrackPidAssoc(Long_t nElements, void *p) {
130  return p ? new(p) ::TrackPidAssoc[nElements] : new ::TrackPidAssoc[nElements];
131  }
132  // Wrapper around operator delete
133  static void delete_TrackPidAssoc(void *p) {
134  delete ((::TrackPidAssoc*)p);
135  }
136  static void deleteArray_TrackPidAssoc(void *p) {
137  delete [] ((::TrackPidAssoc*)p);
138  }
139  static void destruct_TrackPidAssoc(void *p) {
140  typedef ::TrackPidAssoc current_t;
141  ((current_t*)p)->~current_t();
142  }
143 } // end of namespace ROOT for class ::TrackPidAssoc
144 
145 namespace ROOT {
148  static void *new_multimaplEunsignedsPintcOunsignedsPintgR(void *p = 0);
149  static void *newArray_multimaplEunsignedsPintcOunsignedsPintgR(Long_t size, void *p);
153 
154  // Function generating the singleton type initializer
155  static TGenericClassInfo *GenerateInitInstanceLocal(const multimap<unsigned int,unsigned int>*)
156  {
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>) );
168  instance.SetDestructor(&destruct_multimaplEunsignedsPintcOunsignedsPintgR);
169  instance.AdoptCollectionProxyInfo(TCollectionProxyInfo::Generate(TCollectionProxyInfo::MapInsert< multimap<unsigned int,unsigned int> >()));
170 
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> > >");
172  return &instance;
173  }
174  // Static variable to force the class initialization
175  static ::ROOT::TGenericClassInfo *_R__UNIQUE_DICT_(Init) = GenerateInitInstanceLocal((const multimap<unsigned int,unsigned int>*)0x0); R__UseDummy(_R__UNIQUE_DICT_(Init));
176 
177  // Dictionary for non-ClassDef classes
179  TClass* theClass =::ROOT::GenerateInitInstanceLocal((const multimap<unsigned int,unsigned int>*)0x0)->GetClass();
181  return theClass;
182  }
183 
185  }
186 
187 } // end of namespace ROOT
188 
189 namespace ROOT {
190  // Wrappers around operator new
192  return p ? ::new((::ROOT::Internal::TOperatorNewHelper*)p) multimap<unsigned int,unsigned int> : new multimap<unsigned int,unsigned int>;
193  }
194  static void *newArray_multimaplEunsignedsPintcOunsignedsPintgR(Long_t nElements, void *p) {
195  return p ? ::new((::ROOT::Internal::TOperatorNewHelper*)p) multimap<unsigned int,unsigned int>[nElements] : new multimap<unsigned int,unsigned int>[nElements];
196  }
197  // Wrapper around operator delete
199  delete ((multimap<unsigned int,unsigned int>*)p);
200  }
202  delete [] ((multimap<unsigned int,unsigned int>*)p);
203  }
205  typedef multimap<unsigned int,unsigned int> current_t;
206  ((current_t*)p)->~current_t();
207  }
208 } // end of namespace ROOT for class multimap<unsigned int,unsigned int>
209 
210 namespace {
211  void TriggerDictionaryInitialization_TrackPidAssoc_Dict_Impl() {
212  static const char* headers[] = {
213 "0",
214 0
215  };
216  static const char* includePaths[] = {
217 0
218  };
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, "@",
223 nullptr
224 };
225  static bool isInitialized = false;
226  if (!isInitialized) {
227  TROOT::RegisterModule("TrackPidAssoc_Dict",
228  headers, includePaths, payloadCode, fwdDeclCode,
229  TriggerDictionaryInitialization_TrackPidAssoc_Dict_Impl, {}, classesHeaders, /*hasCxxModule*/false);
230  isInitialized = true;
231  }
232  }
233  static struct DictInit {
234  DictInit() {
235  TriggerDictionaryInitialization_TrackPidAssoc_Dict_Impl();
236  }
237  } __TheDictionaryInitializer;
238 }
240  TriggerDictionaryInitialization_TrackPidAssoc_Dict_Impl();
241 }
242