Analysis Software
Documentation for sPHENIX simulation software
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
MBDStudy_Dict.C
Go to the documentation of this file. Or view the newest version in sPHENIX GitHub for file MBDStudy_Dict.C
1 // Do NOT change. Changes will be lost next time file is generated
2 
3 #define R__DICTIONARY_FILENAME MBDStudy_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 // Header files passed as explicit arguments
38 #include "../MBDStudy.h"
39 
40 // Header files passed via #pragma extra_include
41 
42 // The generated code does not explicitly qualify STL entities
43 namespace std {} using namespace std;
44 
45 namespace ROOT {
46  static TClass *MBDStudy_Dictionary();
47  static void MBDStudy_TClassManip(TClass*);
48  static void *new_MBDStudy(void *p = nullptr);
49  static void *newArray_MBDStudy(Long_t size, void *p);
50  static void delete_MBDStudy(void *p);
51  static void deleteArray_MBDStudy(void *p);
52  static void destruct_MBDStudy(void *p);
53 
54  // Function generating the singleton type initializer
55  static TGenericClassInfo *GenerateInitInstanceLocal(const ::MBDStudy*)
56  {
57  ::MBDStudy *ptr = nullptr;
58  static ::TVirtualIsAProxy* isa_proxy = new ::TIsAProxy(typeid(::MBDStudy));
59  static ::ROOT::TGenericClassInfo
60  instance("MBDStudy", "", 28,
61  typeid(::MBDStudy), ::ROOT::Internal::DefineBehavior(ptr, ptr),
62  &MBDStudy_Dictionary, isa_proxy, 4,
63  sizeof(::MBDStudy) );
64  instance.SetNew(&new_MBDStudy);
65  instance.SetNewArray(&newArray_MBDStudy);
66  instance.SetDelete(&delete_MBDStudy);
67  instance.SetDeleteArray(&deleteArray_MBDStudy);
68  instance.SetDestructor(&destruct_MBDStudy);
69  return &instance;
70  }
71  TGenericClassInfo *GenerateInitInstance(const ::MBDStudy*)
72  {
73  return GenerateInitInstanceLocal((::MBDStudy*)nullptr);
74  }
75  // Static variable to force the class initialization
76  static ::ROOT::TGenericClassInfo *_R__UNIQUE_DICT_(Init) = GenerateInitInstanceLocal((const ::MBDStudy*)nullptr); R__UseDummy(_R__UNIQUE_DICT_(Init));
77 
78  // Dictionary for non-ClassDef classes
79  static TClass *MBDStudy_Dictionary() {
80  TClass* theClass =::ROOT::GenerateInitInstanceLocal((const ::MBDStudy*)nullptr)->GetClass();
81  MBDStudy_TClassManip(theClass);
82  return theClass;
83  }
84 
85  static void MBDStudy_TClassManip(TClass* ){
86  }
87 
88 } // end of namespace ROOT
89 
90 namespace ROOT {
91  // Wrappers around operator new
92  static void *new_MBDStudy(void *p) {
93  return p ? new(p) ::MBDStudy : new ::MBDStudy;
94  }
95  static void *newArray_MBDStudy(Long_t nElements, void *p) {
96  return p ? new(p) ::MBDStudy[nElements] : new ::MBDStudy[nElements];
97  }
98  // Wrapper around operator delete
99  static void delete_MBDStudy(void *p) {
100  delete ((::MBDStudy*)p);
101  }
102  static void deleteArray_MBDStudy(void *p) {
103  delete [] ((::MBDStudy*)p);
104  }
105  static void destruct_MBDStudy(void *p) {
106  typedef ::MBDStudy current_t;
107  ((current_t*)p)->~current_t();
108  }
109 } // end of namespace ROOT for class ::MBDStudy
110 
111 namespace ROOT {
112  static TClass *maplEintcOintgR_Dictionary();
113  static void maplEintcOintgR_TClassManip(TClass*);
114  static void *new_maplEintcOintgR(void *p = nullptr);
115  static void *newArray_maplEintcOintgR(Long_t size, void *p);
116  static void delete_maplEintcOintgR(void *p);
117  static void deleteArray_maplEintcOintgR(void *p);
118  static void destruct_maplEintcOintgR(void *p);
119 
120  // Function generating the singleton type initializer
121  static TGenericClassInfo *GenerateInitInstanceLocal(const map<int,int>*)
122  {
123  map<int,int> *ptr = nullptr;
124  static ::TVirtualIsAProxy* isa_proxy = new ::TIsAProxy(typeid(map<int,int>));
125  static ::ROOT::TGenericClassInfo
126  instance("map<int,int>", -2, "map", 100,
127  typeid(map<int,int>), ::ROOT::Internal::DefineBehavior(ptr, ptr),
128  &maplEintcOintgR_Dictionary, isa_proxy, 0,
129  sizeof(map<int,int>) );
130  instance.SetNew(&new_maplEintcOintgR);
131  instance.SetNewArray(&newArray_maplEintcOintgR);
132  instance.SetDelete(&delete_maplEintcOintgR);
133  instance.SetDeleteArray(&deleteArray_maplEintcOintgR);
134  instance.SetDestructor(&destruct_maplEintcOintgR);
135  instance.AdoptCollectionProxyInfo(TCollectionProxyInfo::Generate(TCollectionProxyInfo::MapInsert< map<int,int> >()));
136 
137  ::ROOT::AddClassAlternate("map<int,int>","std::map<int, int, std::less<int>, std::allocator<std::pair<int const, int> > >");
138  return &instance;
139  }
140  // Static variable to force the class initialization
141  static ::ROOT::TGenericClassInfo *_R__UNIQUE_DICT_(Init) = GenerateInitInstanceLocal((const map<int,int>*)nullptr); R__UseDummy(_R__UNIQUE_DICT_(Init));
142 
143  // Dictionary for non-ClassDef classes
144  static TClass *maplEintcOintgR_Dictionary() {
145  TClass* theClass =::ROOT::GenerateInitInstanceLocal((const map<int,int>*)nullptr)->GetClass();
146  maplEintcOintgR_TClassManip(theClass);
147  return theClass;
148  }
149 
150  static void maplEintcOintgR_TClassManip(TClass* ){
151  }
152 
153 } // end of namespace ROOT
154 
155 namespace ROOT {
156  // Wrappers around operator new
157  static void *new_maplEintcOintgR(void *p) {
158  return p ? ::new((::ROOT::Internal::TOperatorNewHelper*)p) map<int,int> : new map<int,int>;
159  }
160  static void *newArray_maplEintcOintgR(Long_t nElements, void *p) {
161  return p ? ::new((::ROOT::Internal::TOperatorNewHelper*)p) map<int,int>[nElements] : new map<int,int>[nElements];
162  }
163  // Wrapper around operator delete
164  static void delete_maplEintcOintgR(void *p) {
165  delete ((map<int,int>*)p);
166  }
167  static void deleteArray_maplEintcOintgR(void *p) {
168  delete [] ((map<int,int>*)p);
169  }
170  static void destruct_maplEintcOintgR(void *p) {
171  typedef map<int,int> current_t;
172  ((current_t*)p)->~current_t();
173  }
174 } // end of namespace ROOT for class map<int,int>
175 
176 namespace {
177  void TriggerDictionaryInitialization_MBDStudy_Dict_Impl() {
178  static const char* headers[] = {
179 "0",
180 nullptr
181  };
182  static const char* includePaths[] = {
183 nullptr
184  };
185  static const char* fwdDeclCode = R"DICTFWDDCLS( #line 1 "MBDStudy_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 MBDStudy; )DICTFWDDCLS";
186  static const char* payloadCode = R"DICTPAYLOAD( #line 1 "MBDStudy_Dict dictionary payload" #define _BACKWARD_BACKWARD_WARNING_H // Inline headers #ifndef __MBDSTUDY_H__ #define __MBDSTUDY_H__ #include <fun4all/SubsysReco.h> #include <string> #include <map> #include <TFile.h> //Forward declerations class PHCompositeNode; class PHG4HitContainer; class PHG4TruthInfoContainer; class EventHeader; class MbdOut; class TFile; class TTree; class TDatabasePDG; class TRandom3; class TH1; class TH2; class TF1; class TCanvas; //Brief: basic ntuple and histogram creation for sim evaluation class MBDStudy: public SubsysReco { public: //Default constructor MBDStudy(const std::string &name="MBDStudy"); //Initialization, called for initialization int Init(PHCompositeNode *); //Initialization at start of every run int InitRun(PHCompositeNode *); //Process Event, called for each event int process_event(PHCompositeNode *); //End, write and close files int End(PHCompositeNode *); //Change output filename void set_savefile(const char *f) { _savefname = f; } void set_tres(const Float_t tr) { _tres = tr; } private: // void CheckDST(PHCompositeNode *topNode); //output filename std::string _savefname; TFile* _savefile; int nprocessed{0}; // num events processed //Output TTree* _tree; Int_t f_evt; Float_t f_bimp; // impact parameter Int_t f_ncoll; // number n-n collisions Int_t f_npart; // number participants Float_t f_vx; // true x vertex of collision point Float_t f_vy; // true y vertex Float_t f_vz; // true z vertex Float_t f_vt; // true start time Short_t f_mbdn[2]; // num hits for each arm (north and south) Float_t f_mbdq[2]; // total charge (currently npe) in each arm Float_t f_mbdt[2]; // time in arm Float_t f_mbdte[2]; // earliest hit time in arm Float_t f_mbdz; // z-vertex Float_t f_mbdt0; // start time TH1* h_mbdq[128]; // q in each tube TH1* h_mbdqtot[2]; // total q in mbd arms TH2* h2_mbdqtot; // north q vs south q TH1* h_ztrue; // true z-vertex TH1* h_tdiff; // time diff between estimated and real time TH2* h2_tdiff_ch; // time diff by channel TCanvas *c_mbdt; // Canvas to TH1 *hevt_mbdt[2]; // time in each mbd, per event TF1 *gaussian; std::map<int,int> _pids; // PIDs of tracks in the MBD // TDatabasePDG* _pdg; TRandom3* _rndm; Float_t _tres; // time resolution of one channel //Get all the nodes void GetNodes(PHCompositeNode *); //Node pointers PHG4TruthInfoContainer* _truth_container; PHG4HitContainer* _mbdhits; EventHeader* _evtheader; }; #endif //* __MBDSTUDY_H__ *// #undef _BACKWARD_BACKWARD_WARNING_H )DICTPAYLOAD";
187  static const char* classesHeaders[] = {
188 "MBDStudy", payloadCode, "@",
189 nullptr
190 };
191  static bool isInitialized = false;
192  if (!isInitialized) {
193  TROOT::RegisterModule("MBDStudy_Dict",
194  headers, includePaths, payloadCode, fwdDeclCode,
195  TriggerDictionaryInitialization_MBDStudy_Dict_Impl, {}, classesHeaders, /*hasCxxModule*/false);
196  isInitialized = true;
197  }
198  }
199  static struct DictInit {
200  DictInit() {
201  TriggerDictionaryInitialization_MBDStudy_Dict_Impl();
202  }
203  } __TheDictionaryInitializer;
204 }
206  TriggerDictionaryInitialization_MBDStudy_Dict_Impl();
207 }
208