Back to home page

sPhenix code displayed by LXR

 
 

    


File indexing completed on 2025-08-05 08:15:34

0001 #include "OnCal.h"
0002 
0003 #include <fun4all/SubsysReco.h>  // for SubsysReco
0004 
0005 #include <phool/phool.h>  // for PHWHERE
0006 
0007 #include <iostream>
0008 
0009 OnCal::OnCal(const std::string &Name)
0010   : SubsysReco(Name)
0011 {
0012 }
0013 
0014 int OnCal::process_event(PHCompositeNode * /*topNode*/)
0015 {
0016   std::cout << "process_event(PHCompositeNode *topNode) not implemented by daughter class: " << Name() << std::endl;
0017   return -1;
0018 }
0019 
0020 int OnCal::End(PHCompositeNode * /*topNode*/)
0021 {
0022   std::cout << "EndOfAnalysis not implemented by subsystem!" << std::endl;
0023   std::cout << "Use this signal for computing your calibrations and commit." << std::endl;
0024   std::cout << "Dont do these operations at EndOfRun since subsystems may be feeded events from different runs." << std::endl;
0025   std::cout << "The number of events is the real parameter here, not the runnumber." << std::endl;
0026   return 0;
0027 }
0028 
0029 void OnCal::AddComment(const std::string &adcom)
0030 {
0031   if (m_Comment.empty())
0032   {
0033     m_Comment = adcom;
0034   }
0035   else
0036   {
0037     m_Comment += ":";
0038     m_Comment += adcom;
0039   }
0040   return;
0041 }
0042 
0043 int OnCal::CopyTables(const int /*FromRun*/, const int /*ToRun*/, const int /*commit*/) const
0044 {
0045   std::cout << PHWHERE << " CopyTables not implemented" << std::endl
0046             << "this calibrator cannot copy its own tables" << std::endl;
0047   return -1;
0048 }