18 int ret = GetNodes(topNode);
29 for(
size_t i = 0; i < hitVector->
size(); ++i)
35 vID[nHits] = elementID % (3*6*2);
36 hID[nHits] = (elementID - hID[nHits])/(3*6*2);
62 hitVector = findNode::getClass<SQHitVector>(topNode,
"SQHitVector");
70 void AnaModule::MakeTree()
72 saveFile =
new TFile(saveName,
"RECREATE");
73 saveTree =
new TTree(
"save",
"Created by AnaModule");
75 saveTree->Branch(
"eventID", &eventID,
"eventID/I");
76 saveTree->Branch(
"nHits", &nHits,
"nHits/I");
77 saveTree->Branch(
"edep", edep,
"edep[nHits]/D");
78 saveTree->Branch(
"hID", hID,
"hID[nHits]/I");
79 saveTree->Branch(
"vID", vID,
"vID[nHits]/I");
void set_output_filename(const TString &n)
int End(PHCompositeNode *topNode)
Called at the end of all processing.
int Init(PHCompositeNode *topNode)
int InitRun(PHCompositeNode *topNode)
int process_event(PHCompositeNode *topNode)
virtual const SQHit * at(const size_t idkey) const =0
virtual size_t size() const =0
An SQ interface class to hold one detector hit.
virtual float get_edep() const
Not valid in E1039. To be deleted.
virtual short get_element_id() const
Return the element ID of this hit.