119 modules_ = class_ -> GetUserModules();
138 cout <<
"From provenance infomation the selected strip modules are = "<<
ProvInfo << endl;
140 cout <<
"From provenance infomation the avaliable strip variables are = "<<
ProvInfo_vars << endl;
145 cout <<
"From provenance infomation the selected pixel modules are = "<<
ProvInfoPixels << endl;
166 v_variables = class_ -> DecodeProvInfo( VarString );
187 histos1D_[ (tmpstr +
"nclusters").c_str() ] =
fs->
make< TH1D >( (tmpstr +
"nclusters").c_str() , (tmpstr +
"nclusters").c_str() , 1000 , 0 , 3000 );
188 histos1D_[ (tmpstr +
"nclusters").c_str() ]->SetXTitle( (
"number of Clusters in " + tmpstr).c_str() );
190 histos1D_[ (tmpstr +
"avgCharge").c_str() ] =
fs->
make< TH1D >( (tmpstr +
"avgCharge").c_str() , (tmpstr +
"avgCharge").c_str() , 500 , 0 , 1000 );
191 histos1D_[ (tmpstr +
"avgCharge").c_str() ]->SetXTitle( (
"average cluster charge in " + tmpstr).c_str() );
193 histos1D_[ (tmpstr +
"avgSize").c_str() ] =
fs->
make< TH1D >( (tmpstr +
"avgSize").c_str() , (tmpstr +
"avgSize").c_str() , 30 , 0 , 10 );
194 histos1D_[ (tmpstr +
"avgSize").c_str() ]->SetXTitle( (
"average cluster size in " + tmpstr).c_str() );
196 maps.push_back( (tmpstr +
"nclusters").c_str() );
197 maps.push_back( (tmpstr +
"avgSize").c_str() );
198 maps.push_back( (tmpstr +
"avgCharge").c_str() );
215 while (mod_tmp > 9 ){
221 histos1D_[ (tmpstr +
"nclusters").c_str() ] ->
Fill( class_ -> GetGenericVariable(
"cHits", *
mod) );
222 histos1D_[ (tmpstr +
"avgSize").c_str() ] ->
Fill( class_ -> GetGenericVariable(
"cSize", *
mod) /class_ -> GetGenericVariable(
"cHits", *
mod) );
223 histos1D_[ (tmpstr +
"avgCharge").c_str() ] ->
Fill( class_ -> GetGenericVariable(
"cCharge", *
mod)/class_ -> GetGenericVariable(
"cHits", *
mod) );
225 cout <<
"n"<<tmpstr <<
", avg size, avg charge = "<< class_ -> GetGenericVariable(
"cHits",*
mod );
226 cout <<
", "<< class_ -> GetGenericVariable(
"cSize",*
mod ) /class_ -> GetGenericVariable(
"cHits",*
mod );
227 cout <<
", "<< class_ -> GetGenericVariable(
"cCharge",*
mod )/class_ -> GetGenericVariable(
"cHits",*
mod ) << endl;
231 histos1D_[ (tmpstr +
"nclusters").c_str() ] ->
Fill( class_ -> GetGenericVariable(
"pHits", *
mod) );
232 histos1D_[ (tmpstr +
"avgSize").c_str() ] ->
Fill( class_ -> GetGenericVariable(
"pSize", *
mod)/class_ -> GetGenericVariable(
"pHits", *
mod) );
233 histos1D_[ (tmpstr +
"avgCharge").c_str() ] ->
Fill( class_ -> GetGenericVariable(
"pCharge", *
mod)/class_ -> GetGenericVariable(
"pHits", *
mod) );
235 cout <<
"n"<<tmpstr <<
", avg size, avg charge = "<< class_ -> GetGenericVariable(
"pHits",*
mod );
236 cout <<
", "<< class_ -> GetGenericVariable(
"pSize",*
mod ) /class_ -> GetGenericVariable(
"pHits",*
mod );
237 cout <<
", "<< class_ -> GetGenericVariable(
"pCharge",*
mod )/class_ -> GetGenericVariable(
"pHits",*
mod ) << endl;
245 cout <<
"-------------------------------------------------------" << endl;
T getParameter(std::string const &) const
std::string ProvInfoPixels_vars
bool getByToken(EDGetToken token, Handle< PROD > &result) const
std::string ProvInfo_vars
std::vector< string > maps
T * make(const Args &...args) const
make new ROOT object
void Fill(HcalDetId &id, double val, std::vector< TH2F > &depth)
void clear(CLHEP::HepGenMatrix &m)
Helper function: Reset all elements of a matrix to 0.
std::vector< int > modules_
edm::Service< TFileService > fs
std::vector< std::string > v_moduleTypes
std::vector< std::string > v_variables
std::vector< std::vector< double > > genericVariables_
std::map< std::string, TH1D * > histos1D_
std::string ProvInfoPixels
Provenance getProvenance(BranchID const &theID) const
T mod(const T &a, const T &b)
ParameterSet const & parameterSet(Provenance const &provenance)
edm::EDGetTokenT< ClusterSummary > token