39 topNodeName(topnodename),
43 event_header(nullptr),
80 for (
int i = -16; i <= 16; ++i) {
102 for (
size_t i = 0; i <
elementID->size(); ++i) {
103 SQHit* hit =
nullptr;
123 const double MUON_MASS = 0.105658;
124 for (
size_t i = 0; i <
gTrackID->size(); ++i) {
133 p4.SetXYZM(
gpx->at(i),
gpy->at(i),
gpz->at(i), MUON_MASS);
158 std::cout <<
"Closing currently open file "
160 <<
" and opening " << filenam << std::endl;
167 std::cout <<
ThisName <<
": opening file " <<
filename.c_str() << std::endl;
172 _fin = TFile::Open(filenam.c_str(),
"READ");
174 std::cerr <<
"!!ERROR!! Failed to open file " << filenam << std::endl;
179 std::cerr <<
"!!ERROR!! Tree " <<
_tree_name <<
" not found in file " << filenam << std::endl;
185 _tin->SetBranchAddress(
"rfID", &
rfID);
197 if (
_tin->GetBranch(
"gCharge") !=
nullptr) {
198 std::cout <<
"Detected MC true-track branches." << std::endl;
202 _tin->SetBranchAddress(
"gvx", &
gvx);
203 _tin->SetBranchAddress(
"gvy", &
gvy);
204 _tin->SetBranchAddress(
"gvz", &
gvz);
205 _tin->SetBranchAddress(
"gpx", &
gpx);
206 _tin->SetBranchAddress(
"gpy", &
gpy);
207 _tin->SetBranchAddress(
"gpz", &
gpz);
224 std::cout <<
"No MC Track branches found. Running in RUS basic exp mode." << std::endl;
240 std::cout <<
Name() <<
": No Input file open" << std::endl;
245 std::cout <<
Name() <<
": No Input file from filelist opened" << std::endl;
252 std::cout <<
"Getting Event from " <<
Name() << std::endl;
290 cout <<
Name() <<
": fileclose: No Input file open" << endl;
324 list<string>::const_iterator iter =
filelist.begin();
327 cout <<
PHWHERE <<
" opening next file: " << *iter << endl;
331 cout <<
PHWHERE <<
" could not open file: " << *iter << endl;
345 cerr <<
"!!ERROR!! PushBackEvents(): Not implemented yet." << endl;
425 cout <<
PHWHERE <<
Name() <<
" No MasterSync object, cannot perform synchronization" << endl;
426 cout <<
"Most likely your first file does not contain a SyncObject and the file" << endl;
427 cout <<
"opened by the Fun4AllDstInputManager with Name " <<
Name() <<
" has one" << endl;
428 cout <<
"Change your macro and use the file opened by this input manager as first input" << endl;
429 cout <<
"and you will be okay. Fun4All will not process the current configuration" << endl << endl;
435 cout <<
"big problem" << endl;
474 std::cout <<
"Fun4AllRUSInputManager::MakeNode(): Created "
475 << (
is_mc ?
"MC" :
"Data")
476 <<
" node structure under DST and RUN." << std::endl;
int verbosity
The verbosity level. 0 means not verbose at all.
virtual const std::string Name() const
Returns the name of this module.
static Fun4AllServer * instance()
PHCompositeNode * topNode() const
void CurrentEvent(const int evt)
void SegmentNumber(const int iseg)
void PrdfEvents(const int i)
PHBoolean addNode(PHNode *)
PHNode * findFirst(const std::string &, const std::string &)
virtual void set_data_quality(const int a)=0
virtual void set_qie_turn_id(const int a)=0
virtual void set_spill_id(const int a)=0
virtual void set_event_id(const int a)=0
virtual void set_qie_rf_id(const int a)=0
virtual void set_qie_rf_intensity(const short i, const int a)=0
virtual void set_run_id(const int a)=0
virtual void set_trigger(const SQEvent::TriggerMask i, const bool a)=0
virtual void push_back(const SQHit *hit)=0
An SQ interface class to hold one detector hit.
virtual void set_element_id(const short a)
virtual void set_hit_id(const int a)
virtual void set_detector_id(const short a)
virtual void set_tdc_time(const float a)
virtual void set_track_id(const int a)
virtual void set_drift_distance(const float a)
virtual void set_n_spill(const int a)
virtual const SQSpill * get(unsigned int idkey) const
Return the SQSpill entry having spill ID = 'idkey'. Return '0' if no entry exists.
virtual SQSpill * insert(const SQSpill *hit)
Insert the given SQSpill object.
virtual size_t size() const
Return the number of spills held.
An SQ interface class to hold the data of one spill.
virtual void set_spill_id(const int a)
virtual void set_run_id(const int a)
virtual void push_back(const SQTrack *trk)=0
An SQ interface class to hold one true or reconstructed track.
virtual void set_track_id(const int a)=0
virtual void set_pos_vtx(const TVector3 a)=0
virtual void set_mom_vtx(const TLorentzVector a)=0
virtual void set_pos_st1(const TVector3 a)=0
virtual void set_pos_st3(const TVector3 a)=0
virtual void set_charge(const int a)=0
virtual void set_mom_st1(const TLorentzVector a)=0
virtual void set_mom_st3(const TLorentzVector a)=0
virtual int Different(const SyncObject *other) const
virtual void SegmentNumber(const int)
set Segment Number
virtual void Reset()
Clear Sync.
virtual void EventNumber(const int)
set Event Number
virtual SyncObject * clone() const
Virtual copy constructor.
virtual void EventCounter(const int)
set Event Counter
virtual void RunNumber(const int)
set Run Number