|
|
Go to the documentation of this file.
36 std::cout <<
"============================================================================" << std::endl;
37 std::cout <<
"DoCastorAnalysis:: Initialized as observer" << std::endl;
39 std::cout <<
" Castor Tree will be created" << std::endl;
44 std::cout <<
"============================================================================" << std::endl;
48 std::cout <<
"DoCastorAnalysis: output event root file created" << std::endl;
75 std::cout <<
"DoCastorAnalysis: Ntuple event written" << std::endl;
79 std::cout <<
"DoCastorAnalysis: Event file closed" << std::endl;
84 std::cout << std::endl <<
"DoCastorAnalysis: end of process" << std::endl;
97 std::cout << std::endl <<
"DoCastorAnalysis: Starting Run" << std::endl;
117 G4HCofThisEvent* allHC = (*evt)()->GetHCofThisEvent();
119 int CAFIid = G4SDManager::GetSDMpointer()->GetCollectionID(
"CastorFI");
124 unsigned int volumeID = 0;
127 int nentries = theCAFI->entries();
129 std::cout <<
"nentries in CAFI: " << nentries << std::endl;
172 for (
int ihit = 0; ihit < nentries; ihit++) {
177 int zside, sector, zmodule;
204 std::cout <<
"hit " << ihit + 1 <<
" : x = " << (*psimhit_x)[ihit] <<
" , eta = " << (*psimhit_eta)[ihit]
205 <<
" , phi = " << (*psimhit_phi)[ihit] <<
" , energy = " << (*psimhit_energy)[ihit] << std::endl;
214 delete theCastorNumScheme;
TFile * CastorOutputEventFile
std::vector< int > simhit_sector
std::vector< int > * psimhit_sector
uint32_t getUnitID() const
std::vector< double > simhit_energy
std::vector< int > * psimhit_module
double getEnergyDeposit() const
Geom::Theta< T > theta() const
std::vector< int > simhit_module
std::vector< double > * psimhit_z
std::vector< double > simhit_z
XYZPointD XYZPoint
point in space with cartesian internal representation
std::vector< double > * psimhit_x
static void unpackIndex(const uint32_t &idx, int &z, int §or, int &zmodule)
void update(const BeginOfJob *run) override
This routine will be called when the appropriate signal arrives.
std::vector< double > simhit_x
Tan< T >::type tan(const T &t)
std::vector< double > simhit_eta
math::XYZPoint getPosition() const
std::vector< double > * psimhit_energy
~DoCastorAnalysis() override
DoCastorAnalysis(const edm::ParameterSet &p)
std::vector< double > * psimhit_phi
std::vector< double > * psimhit_y
std::vector< double > simhit_phi
T getParameter(std::string const &) const
G4THitsCollection< CaloG4Hit > CaloG4HitCollection
std::vector< double > simhit_y
std::vector< double > * psimhit_eta