FairRoot/PandaRoot
PndTrkSciTHitList.cxx
Go to the documentation of this file.
1 //
2 // PndTrkSciTHitList.cxx
3 //
4 //
5 // authors: Lia Lavezzi - INFN Pavia (2012)
6 //
7 
8 #include "PndTrkSciTHitList.h"
9 
10 #include "PndDetectorList.h"
11 
12 #include <iostream>
13 
14 
15 using namespace std;
16 
17 // ------------------ instance --------------------------
19 
21 {
22  if(!fscitInstance) cout << "NO PndTrkSciTHitList: you must fill sciT hit list BEFORE doing what you are doing!" << endl;
23  return fscitInstance;
24 }
25 
27  fscitInstance = this;
28  return fscitInstance;
29 }
30 
31 // ------------------ instance ---------------------------
32 
34 
35 PndTrkSciTHitList::PndTrkSciTHitList(Int_t iregion) : PndTrkHitList(), fIRegion(iregion) {}
36 
38  fscitInstance = 0;
39 }
40 
41 void PndTrkSciTHitList::AddHit(Int_t hitid, Int_t detid, FairHit *hit)
42 {
43  TVector3 position;
44  hit->Position(position);
45 
46  PndTrkHitList::AddHit(hitid, detid, 0, SCIT, position); // CHECK iregion
47 }
48 
49 
50 
52 
void AddHit(Int_t hitid, Int_t detid, FairHit *hit)
#define SCIT
PndTrkSciTHitList * Instanciate()
static PndTrkSciTHitList * Instance()
static PndTrkSciTHitList * fscitInstance
int hit(Int_t nEvents=0, TString inFile="sim.root", TString parFile="par.root", TString inDigi="digi.root", TString outFile="hit.root", Int_t timeBased=0)
Definition: hit.C:1
void AddHit(Int_t hitID, Int_t detID, Bool_t used, Int_t iregion, TVector3 &pos)
ClassImp(PndAnaContFact)