CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
List of all members | Public Member Functions | Private Member Functions | Private Attributes
HSCPTreeBuilder Class Reference

#include <SUSYBSMAnalysis/HSCP/src/HSCPTreeBuilder.cc>

Inheritance diagram for HSCPTreeBuilder:
edm::EDFilter edm::ProducerBase edm::EDConsumerBase edm::ProductRegistryHelper

Public Member Functions

 HSCPTreeBuilder (const edm::ParameterSet &)
 
 ~HSCPTreeBuilder ()
 
- Public Member Functions inherited from edm::EDFilter
 EDFilter ()
 
ModuleDescription const & moduleDescription () const
 
virtual ~EDFilter ()
 
- Public Member Functions inherited from edm::ProducerBase
void callWhenNewProductsRegistered (std::function< void(BranchDescription const &)> const &func)
 
 ProducerBase ()
 
void registerProducts (ProducerBase *, ProductRegistry *, ModuleDescription const &)
 
std::function< void(BranchDescription
const &)> 
registrationCallback () const
 used by the fwk to register list of products More...
 
virtual ~ProducerBase ()
 
- Public Member Functions inherited from edm::EDConsumerBase
std::vector< ConsumesInfoconsumesInfo () const
 
 EDConsumerBase ()
 
ProductHolderIndexAndSkipBit indexFrom (EDGetToken, BranchType, TypeID const &) const
 
void itemsMayGet (BranchType, std::vector< ProductHolderIndexAndSkipBit > &) const
 
void itemsToGet (BranchType, std::vector< ProductHolderIndexAndSkipBit > &) const
 
std::vector
< ProductHolderIndexAndSkipBit >
const & 
itemsToGetFromEvent () const
 
void labelsForToken (EDGetToken iToken, Labels &oLabels) const
 
void modulesDependentUpon (std::string const &iProcessName, std::string const &iModuleLabel, bool iPrint, std::vector< char const * > &oModuleLabels) const
 
void modulesWhoseProductsAreConsumed (std::vector< ModuleDescription const * > &modules, ProductRegistry const &preg, std::map< std::string, ModuleDescription const * > const &labelsToDesc, std::string const &processName) const
 
bool registeredToConsume (ProductHolderIndex, bool, BranchType) const
 
bool registeredToConsumeMany (TypeID const &, BranchType) const
 
void updateLookup (BranchType iBranchType, ProductHolderIndexHelper const &)
 
virtual ~EDConsumerBase ()
 

Private Member Functions

virtual void beginJob () override
 
int ClosestMuonIndex (reco::TrackRef track, std::vector< reco::MuonRef >)
 
virtual void endJob () override
 
virtual bool filter (edm::Event &, const edm::EventSetup &) override
 

Private Attributes

float Calo_ecal_beta [10000]
 
float Calo_ecal_beta_err [10000]
 
float Calo_ecal_chi2s [10000][10]
 
float Calo_ecal_crossedE [10000]
 
float Calo_ecal_dEdx [10000]
 
unsigned int Calo_ecal_detIds [10000][10]
 
float Calo_ecal_e1OverE9s [10000][10]
 
float Calo_ecal_energies [10000][10]
 
float Calo_ecal_invBeta_err [10000]
 
int Calo_ecal_numCrysCrossed [10000]
 
float Calo_ecal_outOfTimeChi2s [10000][10]
 
float Calo_ecal_outOfTimeEnergies [10000][10]
 
float Calo_ecal_swissCrossKs [10000][10]
 
float Calo_ecal_time [10000]
 
float Calo_ecal_time_err [10000]
 
float Calo_ecal_timeErrors [10000][10]
 
float Calo_ecal_times [10000][10]
 
float Calo_ecal_trackExitEtas [10000][10]
 
float Calo_ecal_trackExitPhis [10000][10]
 
float Calo_ecal_trackLengths [10000][10]
 
float Event_BField
 
unsigned int Event_BXCrossing
 
unsigned int Event_EventNumber
 
unsigned int Event_LumiSection
 
unsigned int Event_Orbit
 
bool Event_PhysicsDeclared
 
unsigned int Event_RunNumber
 
unsigned int Event_Store
 
bool Event_technicalBits [64]
 
unsigned int Event_Time
 
bool Event_triggerHLTBits [128]
 
bool Event_triggerL1Bits [192]
 
float Gen_beta [10000]
 
float Gen_charge [10000]
 
float Gen_eta [10000]
 
float Gen_mass [10000]
 
float Gen_p [10000]
 
int Gen_pdgId [10000]
 
float Gen_phi [10000]
 
float Gen_pt [10000]
 
float Gen_px [10000]
 
float Gen_py [10000]
 
float Gen_pz [10000]
 
bool Hscp_hasCalo [10000]
 
bool Hscp_hasMuon [10000]
 
bool Hscp_hasRpc [10000]
 
bool Hscp_hasTrack [10000]
 
int Hscp_type [10000]
 
const edm::EventiEvent_
 
const edm::EventSetupiSetup_
 
EDGetTokenT
< GenParticleCollection
m_genParticlesToken
 
EDGetTokenT
< L1GlobalTriggerReadoutRecord
m_gtReadoutRecordToken
 
EDGetTokenT
< susybsm::HSCParticleCollection
m_HSCPsToken
 
EDGetTokenT
< reco::VertexCollection
m_recoVertexToken
 
EDGetTokenT< edm::TriggerResultsm_trToken
 
float Muon_cb_fIBeta [10000]
 
float Muon_cb_fIBeta_err [10000]
 
float Muon_cb_IBeta [10000]
 
float Muon_cb_IBeta_err [10000]
 
int Muon_cb_ndof [10000]
 
int Muon_charge [10000]
 
float Muon_csc_fIBeta [10000]
 
float Muon_csc_fIBeta_err [10000]
 
float Muon_csc_IBeta [10000]
 
float Muon_csc_IBeta_err [10000]
 
int Muon_csc_ndof [10000]
 
float Muon_dt_fIBeta [10000]
 
float Muon_dt_fIBeta_err [10000]
 
float Muon_dt_IBeta [10000]
 
float Muon_dt_IBeta_err [10000]
 
int Muon_dt_ndof [10000]
 
float Muon_eta [10000]
 
float Muon_p [10000]
 
float Muon_phi [10000]
 
float Muon_pt [10000]
 
bool Muon_qualityValid [10000]
 
int Muon_type [10000]
 
TTree * MyTree
 
unsigned int NGens
 
unsigned int NHSCPs
 
unsigned int NVertices
 
bool reccordGenInfo
 
bool reccordVertexInfo
 
float Rpc_beta [10000]
 
edm::Service< TFileServicetfs
 
int Track_charge [10000]
 
float Track_chi2 [10000]
 
float Track_d0 [10000]
 
float Track_dEdxD1 [10000]
 
unsigned int Track_dEdxD1_NOM [10000]
 
float Track_dEdxD1_NOS [10000]
 
float Track_dEdxD2 [10000]
 
unsigned int Track_dEdxD2_NOM [10000]
 
float Track_dEdxD2_NOS [10000]
 
float Track_dEdxD3 [10000]
 
unsigned int Track_dEdxD3_NOM [10000]
 
float Track_dEdxD3_NOS [10000]
 
float Track_dEdxE1 [10000]
 
unsigned int Track_dEdxE1_NOM [10000]
 
float Track_dEdxE1_NOS [10000]
 
float Track_dEdxE2 [10000]
 
unsigned int Track_dEdxE2_NOM [10000]
 
float Track_dEdxE2_NOS [10000]
 
float Track_dEdxE3 [10000]
 
unsigned int Track_dEdxE3_NOM [10000]
 
float Track_dEdxE3_NOS [10000]
 
float Track_dz [10000]
 
float Track_eta [10000]
 
float Track_eta_err [10000]
 
unsigned int Track_ndof [10000]
 
unsigned int Track_NOH [10000]
 
float Track_p [10000]
 
float Track_phi [10000]
 
float Track_phi_err [10000]
 
float Track_pt [10000]
 
float Track_pt_err [10000]
 
int Track_quality [10000]
 
float Vertex_chi2 [1000]
 
bool Vertex_isFake [1000]
 
float Vertex_ndof [1000]
 
int Vertex_TrackSize [1000]
 
float Vertex_x [1000]
 
float Vertex_x_err [1000]
 
float Vertex_y [1000]
 
float Vertex_y_err [1000]
 
float Vertex_z [1000]
 
float Vertex_z_err [1000]
 

Additional Inherited Members

- Public Types inherited from edm::EDFilter
typedef EDFilter ModuleType
 
- Public Types inherited from edm::ProducerBase
typedef
ProductRegistryHelper::TypeLabelList 
TypeLabelList
 
- Public Types inherited from edm::EDConsumerBase
typedef ProductLabels Labels
 
- Static Public Member Functions inherited from edm::EDFilter
static const std::string & baseType ()
 
static void fillDescriptions (ConfigurationDescriptions &descriptions)
 
static void prevalidate (ConfigurationDescriptions &)
 
- Protected Member Functions inherited from edm::EDConsumerBase
template<typename ProductType , BranchType B = InEvent>
EDGetTokenT< ProductType > consumes (edm::InputTag const &tag)
 
EDGetToken consumes (const TypeToGet &id, edm::InputTag const &tag)
 
template<BranchType B>
EDGetToken consumes (TypeToGet const &id, edm::InputTag const &tag)
 
ConsumesCollector consumesCollector ()
 Use a ConsumesCollector to gather consumes information from helper functions. More...
 
template<typename ProductType , BranchType B = InEvent>
void consumesMany ()
 
void consumesMany (const TypeToGet &id)
 
template<BranchType B>
void consumesMany (const TypeToGet &id)
 
template<typename ProductType , BranchType B = InEvent>
EDGetTokenT< ProductType > mayConsume (edm::InputTag const &tag)
 
EDGetToken mayConsume (const TypeToGet &id, edm::InputTag const &tag)
 
template<BranchType B>
EDGetToken mayConsume (const TypeToGet &id, edm::InputTag const &tag)
 

Detailed Description

Description: <one line="" class="" summary>="">

Implementation: <Notes on="" implementation>="">

Definition at line 117 of file HSCPTreeBuilder.cc.

Constructor & Destructor Documentation

HSCPTreeBuilder::HSCPTreeBuilder ( const edm::ParameterSet iConfig)
explicit

Definition at line 265 of file HSCPTreeBuilder.cc.

References gather_cfg::cout, edm::false, edm::ParameterSet::getParameter(), edm::ParameterSet::getUntrackedParameter(), HLT_FULL_cff::InputTag, and funct::true.

266 {
267  m_gtReadoutRecordToken = consumes<L1GlobalTriggerReadoutRecord>(InputTag("gtDigis"));
268  m_trToken = consumes<edm::TriggerResults>(InputTag("TriggerResults"));
269  m_recoVertexToken = consumes<reco::VertexCollection>(InputTag("offlinePrimaryVertices"));
270  m_genParticlesToken = mayConsume<GenParticleCollection>(InputTag("genParticles"));
271  m_HSCPsToken = consumes<susybsm::HSCParticleCollection >(iConfig.getParameter<InputTag> ("HSCParticles"));
272 
273  reccordVertexInfo = iConfig.getUntrackedParameter<bool> ("reccordVertexInfo" , true );
274  reccordGenInfo = iConfig.getUntrackedParameter<bool> ("reccordGenInfo" , false );
275 
276  std::cout << "######################################################" << endl;
277  std::cout << " USE OF THE HSCPTreeBuilder is deprecated! " << endl;
278  std::cout << "better to use the HSCParticle Producer and then FWLite" << endl;
279  std::cout << "######################################################" << endl;
280 
281 }
T getParameter(std::string const &) const
T getUntrackedParameter(std::string const &, T const &) const
EDGetTokenT< L1GlobalTriggerReadoutRecord > m_gtReadoutRecordToken
EDGetTokenT< GenParticleCollection > m_genParticlesToken
EDGetTokenT< edm::TriggerResults > m_trToken
tuple cout
Definition: gather_cfg.py:145
volatile std::atomic< bool > shutdown_flag false
EDGetTokenT< reco::VertexCollection > m_recoVertexToken
EDGetTokenT< susybsm::HSCParticleCollection > m_HSCPsToken
HSCPTreeBuilder::~HSCPTreeBuilder ( )

Definition at line 284 of file HSCPTreeBuilder.cc.

285 {
286 }

Member Function Documentation

void HSCPTreeBuilder::beginJob ( void  )
overrideprivatevirtual

Reimplemented from edm::EDFilter.

Definition at line 289 of file HSCPTreeBuilder.cc.

290 {
291  TTree::SetMaxTreeSize(1000*Long64_t(2000000000)); // authorize Trees up to 2 Terabytes
292  MyTree = tfs->make<TTree> ("HscpTree","HscpTree");
293 
294  MyTree->Branch("Event_EventNumber" ,&Event_EventNumber ,"Event_EventNumber/i");
295  MyTree->Branch("Event_RunNumber" ,&Event_RunNumber ,"Event_RunNumber/i");
296  MyTree->Branch("Event_LumiSection" ,&Event_LumiSection ,"Event_LumiSection/i");
297  MyTree->Branch("Event_BXCrossing" ,&Event_BXCrossing ,"Event_BXCrossing/i");
298  MyTree->Branch("Event_Orbit" ,&Event_Orbit ,"Event_Orbit/i");
299  MyTree->Branch("Event_Store" ,&Event_Store ,"Event_Store/i");
300  MyTree->Branch("Event_Time" ,&Event_Time ,"Event_Time/i");
301  MyTree->Branch("Event_PhysicsDeclared" ,&Event_PhysicsDeclared ,"Event_PhysicsDeclared/O");
302  MyTree->Branch("Event_technicalBits" ,Event_technicalBits ,"Event_technicalBits[64]/O");
303  MyTree->Branch("Event_triggerL1Bits" ,Event_triggerL1Bits ,"Event_triggerL1Bits[192]/O");
304  MyTree->Branch("Event_triggerHLTBits" ,Event_triggerHLTBits ,"Event_triggerHLTBits[128]/O");
305  MyTree->Branch("Event_BField" ,&Event_BField ,"Event_BField/F");
306 
307  if(reccordVertexInfo){
308  MyTree->Branch("NVertices" ,&NVertices ,"NVertices/I");
309  MyTree->Branch("Vertex_x" ,Vertex_x ,"Vertex_x[NVertices]/F");
310  MyTree->Branch("Vertex_y" ,Vertex_y ,"Vertex_y[NVertices]/F");
311  MyTree->Branch("Vertex_z" ,Vertex_z ,"Vertex_z[NVertices]/F");
312  MyTree->Branch("Vertex_x_err" ,Vertex_x_err ,"Vertex_x_err[NVertices]/F");
313  MyTree->Branch("Vertex_y_err" ,Vertex_y_err ,"Vertex_y_err[NVertices]/F");
314  MyTree->Branch("Vertex_z_err" ,Vertex_z_err ,"Vertex_z_err[NVertices]/F");
315  MyTree->Branch("Vertex_TrackSize",Vertex_TrackSize,"Vertex_TrackSize[NVertices]/I");
316  MyTree->Branch("Vertex_chi2" ,Vertex_chi2 ,"Vertex_chi2[NVertices]/F");
317  MyTree->Branch("Vertex_ndof" ,Vertex_ndof ,"Vertex_ndof[NVertices]/F");
318  MyTree->Branch("Vertex_isFake" ,Vertex_isFake ,"Vertex_isFake[NVertices]/O");
319  }
320 
321  MyTree->Branch("NHSCPs" ,&NHSCPs ,"NHSCPs/I");
322  MyTree->Branch("Hscp_hasTrack" ,Hscp_hasTrack ,"Hscp_hasTrack[NHSCPs]/O");
323  MyTree->Branch("Hscp_hasMuon" ,Hscp_hasMuon ,"Hscp_hasMuon[NHSCPs]/O");
324  MyTree->Branch("Hscp_hasRpc" ,Hscp_hasRpc ,"Hscp_hasRpc[NHSCPs]/O");
325  MyTree->Branch("Hscp_hasCalo" ,Hscp_hasCalo ,"Hscp_hasCalo[NHSCPs]/O");
326  MyTree->Branch("Hscp_type" ,Hscp_type ,"Hscp_type[NHSCPs]/I");
327  MyTree->Branch("Track_NOH" ,Track_NOH ,"Track_NOH[NHSCPs]/I");
328  MyTree->Branch("Track_p" ,Track_p ,"Track_p[NHSCPs]/F");
329  MyTree->Branch("Track_pt" ,Track_pt ,"Track_pt[NHSCPs]/F");
330  MyTree->Branch("Track_pt_err" ,Track_pt_err ,"Track_pt_err[NHSCPs]/F");
331  MyTree->Branch("Track_chi2" ,Track_chi2 ,"Track_chi2[NHSCPs]/F");
332  MyTree->Branch("Track_ndof" ,Track_ndof ,"Track_ndof[NHSCPs]/F");
333  MyTree->Branch("Track_eta" ,Track_eta ,"Track_eta[NHSCPs]/F");
334  MyTree->Branch("Track_eta_err" ,Track_eta_err ,"Track_eta_err[NHSCPs]/F");
335  MyTree->Branch("Track_phi" ,Track_phi ,"Track_phi[NHSCPs]/F");
336  MyTree->Branch("Track_phi_err" ,Track_phi_err ,"Track_phi_err[NHSCPs]/F");
337  MyTree->Branch("Track_d0" ,Track_d0 ,"Track_d0[NHSCPs]/F");
338  MyTree->Branch("Track_dz" ,Track_dz ,"Track_dz[NHSCPs]/F");
339  MyTree->Branch("Track_quality" ,Track_quality ,"Track_quality[NHSCPs]/I");
340  MyTree->Branch("Track_charge" ,Track_charge ,"Track_charge[NHSCPs]/I");
341  MyTree->Branch("Track_dEdxE1" ,Track_dEdxE1 ,"Track_dEdxE1[NHSCPs]/F");
342  MyTree->Branch("Track_dEdxE1_NOS" ,Track_dEdxE1_NOS ,"Track_dEdxE1_NOS[NHSCPs]/F");
343  MyTree->Branch("Track_dEdxE1_NOM" ,Track_dEdxE1_NOM ,"Track_dEdxE1_NOM[NHSCPs]/I");
344  MyTree->Branch("Track_dEdxE2" ,Track_dEdxE2 ,"Track_dEdxE2[NHSCPs]/F");
345  MyTree->Branch("Track_dEdxE2_NOS" ,Track_dEdxE2_NOS ,"Track_dEdxE2_NOS[NHSCPs]/F");
346  MyTree->Branch("Track_dEdxE2_NOM" ,Track_dEdxE2_NOM ,"Track_dEdxE2_NOM[NHSCPs]/I");
347  MyTree->Branch("Track_dEdxE3" ,Track_dEdxE3 ,"Track_dEdxE3[NHSCPs]/F");
348  MyTree->Branch("Track_dEdxE3_NOS" ,Track_dEdxE3_NOS ,"Track_dEdxE3_NOS[NHSCPs]/F");
349  MyTree->Branch("Track_dEdxE3_NOM" ,Track_dEdxE3_NOM ,"Track_dEdxE3_NOM[NHSCPs]/I");
350  MyTree->Branch("Track_dEdxD1" ,Track_dEdxD1 ,"Track_dEdxD1[NHSCPs]/F");
351  MyTree->Branch("Track_dEdxD1_NOS" ,Track_dEdxD1_NOS ,"Track_dEdxD1_NOS[NHSCPs]/F");
352  MyTree->Branch("Track_dEdxD1_NOM" ,Track_dEdxD1_NOM ,"Track_dEdxD1_NOM[NHSCPs]/I");
353  MyTree->Branch("Track_dEdxD2" ,Track_dEdxD2 ,"Track_dEdxD2[NHSCPs]/F");
354  MyTree->Branch("Track_dEdxD2_NOS" ,Track_dEdxD2_NOS ,"Track_dEdxD2_NOS[NHSCPs]/F");
355  MyTree->Branch("Track_dEdxD2_NOM" ,Track_dEdxD2_NOM ,"Track_dEdxD2_NOM[NHSCPs]/I");
356  MyTree->Branch("Track_dEdxD3" ,Track_dEdxD3 ,"Track_dEdxD3[NHSCPs]/F");
357  MyTree->Branch("Track_dEdxD3_NOS" ,Track_dEdxD3_NOS ,"Track_dEdxD3_NOS[NHSCPs]/F");
358  MyTree->Branch("Track_dEdxD3_NOM" ,Track_dEdxD3_NOM ,"Track_dEdxD3_NOM[NHSCPs]/I");
359  MyTree->Branch("Muon_p" ,Muon_p ,"Muon_p[NHSCPs]/F");
360  MyTree->Branch("Muon_pt" ,Muon_pt ,"Muon_pt[NHSCPs]/F");
361  MyTree->Branch("Muon_eta" ,Muon_eta ,"Muon_eta[NHSCPs]/F");
362  MyTree->Branch("Muon_phi" ,Muon_phi ,"Muon_phi[NHSCPs]/F");
363  MyTree->Branch("Muon_type" ,Muon_type ,"Muon_type[NHSCPs]/i");
364  MyTree->Branch("Muon_qualityValid" ,Muon_qualityValid ,"Muon_qualityValid[NHSCPs]/O");
365  MyTree->Branch("Muon_charge" ,Muon_charge ,"Muon_charge[NHSCPs]/i");
366  MyTree->Branch("Muon_dt_IBeta" ,Muon_dt_IBeta ,"Muon_dt_IBeta[NHSCPs]/F");
367  MyTree->Branch("Muon_dt_IBeta_err" ,Muon_dt_IBeta_err ,"Muon_dt_IBeta_err[NHSCPs]/F");
368  MyTree->Branch("Muon_dt_fIBeta" ,Muon_dt_fIBeta ,"Muon_dt_fIBeta[NHSCPs]/F");
369  MyTree->Branch("Muon_dt_fIBeta_err" ,Muon_dt_fIBeta_err ,"Muon_dt_fIBeta_err[NHSCPs]/F");
370  MyTree->Branch("Muon_dt_ndof" ,Muon_dt_ndof ,"Muon_dt_ndof[NHSCPs]/I");
371  MyTree->Branch("Muon_csc_IBeta" ,Muon_csc_IBeta ,"Muon_csc_IBeta[NHSCPs]/F");
372  MyTree->Branch("Muon_csc_IBeta_err" ,Muon_csc_IBeta_err ,"Muon_csc_IBeta_err[NHSCPs]/F");
373  MyTree->Branch("Muon_csc_fIBeta" ,Muon_csc_fIBeta ,"Muon_csc_fIBeta[NHSCPs]/F");
374  MyTree->Branch("Muon_csc_fIBeta_err",Muon_csc_fIBeta_err,"Muon_csc_fIBeta_err[NHSCPs]/F");
375  MyTree->Branch("Muon_csc_ndof" ,Muon_csc_ndof ,"Muon_csc_ndof[NHSCPs]/I");
376  MyTree->Branch("Muon_cb_IBeta" ,Muon_cb_IBeta ,"Muon_cb_IBeta[NHSCPs]/F");
377  MyTree->Branch("Muon_cb_IBeta_err" ,Muon_cb_IBeta_err ,"Muon_cb_IBeta_err[NHSCPs]/F");
378  MyTree->Branch("Muon_cb_fIBeta" ,Muon_cb_fIBeta ,"Muon_cb_fIBeta[NHSCPs]/F");
379  MyTree->Branch("Muon_cb_fIBeta_err" ,Muon_cb_fIBeta_err ,"Muon_cb_fIBeta_err[NHSCPs]/F");
380  MyTree->Branch("Muon_cb_ndof" ,Muon_cb_ndof ,"Muon_cb_ndof[NHSCPs]/I");
381 
382  MyTree->Branch("Rpc_beta" ,Rpc_beta ,"Rpc_beta[NHSCPs]/F");
383 
384  MyTree->Branch("Calo_ecal_crossedE" ,Calo_ecal_crossedE ,"Calo_ecal_crossedE[NHSCPs]/F");
385  MyTree->Branch("Calo_ecal_beta" ,Calo_ecal_beta ,"Calo_ecal_beta[NHSCPs]/F");
386  MyTree->Branch("Calo_ecal_beta_err" ,Calo_ecal_beta_err ,"Calo_ecal_beta_err[NHSCPs]/F");
387  MyTree->Branch("Calo_ecal_invBeta_err" ,Calo_ecal_invBeta_err ,"Calo_ecal_invBeta_err[NHSCPs]/F");
388  MyTree->Branch("Calo_ecal_dEdx" ,Calo_ecal_dEdx ,"Calo_ecal_dEdx[NHSCPs]/F");
389  MyTree->Branch("Calo_ecal_time" ,Calo_ecal_time ,"Calo_ecal_time[NHSCPs]/F");
390  MyTree->Branch("Calo_ecal_time_err" ,Calo_ecal_time_err ,"Calo_ecal_time_err[NHSCPs]/F");
391  MyTree->Branch("Calo_ecal_numCrysCrossed" ,Calo_ecal_numCrysCrossed,"Calo_ecal_numCrysCrossed[NHSCPs]/I");
392  MyTree->Branch("Calo_ecal_swissCrossKs" ,Calo_ecal_swissCrossKs ,"Calo_ecal_swissCrossKs[NHSCPs][10]/F");
393  MyTree->Branch("Calo_ecal_e1OverE9s" ,Calo_ecal_e1OverE9s ,"Calo_ecal_e1OverE9s[NHSCPs][10]/F");
394  MyTree->Branch("Calo_ecal_trackLengths" ,Calo_ecal_trackLengths ,"Calo_ecal_trackLengths[NHSCPs][10]/F");
395  MyTree->Branch("Calo_ecal_trackExitEtas" ,Calo_ecal_trackExitEtas ,"Calo_ecal_trackExitEtas[NHSCPs][10]/F");
396  MyTree->Branch("Calo_ecal_trackExitPhis" ,Calo_ecal_trackExitPhis ,"Calo_ecal_trackExitPhis[NHSCPs][10]/F");
397  MyTree->Branch("Calo_ecal_energies" ,Calo_ecal_energies ,"Calo_ecal_energies[NHSCPs][10]/F");
398  MyTree->Branch("Calo_ecal_outOfTimeEnergies",Calo_ecal_outOfTimeEnergies ,"Calo_ecal_outOfTimeEnergies[NHSCPs][10]/F");
399  MyTree->Branch("Calo_ecal_chi2s" ,Calo_ecal_chi2s ,"Calo_ecal_chi2s[NHSCPs][10]/F");
400  MyTree->Branch("Calo_ecal_outOfTimeChi2s" ,Calo_ecal_outOfTimeChi2s ,"Calo_ecal_outOfTimeChi2s[NHSCPs][10]/F");
401  MyTree->Branch("Calo_ecal_times" ,Calo_ecal_times ,"Calo_ecal_times[NHSCPs][10]/F");
402  MyTree->Branch("Calo_ecal_timeErrors" ,Calo_ecal_timeErrors ,"Calo_ecal_timeErrors[NHSCPs][10]/F");
403  MyTree->Branch("Calo_ecal_detIds" ,Calo_ecal_detIds ,"Calo_ecal_detIds[NHSCPs][10]/I");
404 
405  if(reccordGenInfo){
406  MyTree->Branch("NGens" ,&NGens ,"NGens/I");
407  MyTree->Branch("Gen_pdgId" ,Gen_pdgId ,"Gen_pdgId[NGens]/i");
408  MyTree->Branch("Gen_charge" ,Gen_charge ,"Gen_charge[NGens]/F");
409  MyTree->Branch("Gen_p" ,Gen_p ,"Gen_p[NGens]/F");
410  MyTree->Branch("Gen_px" ,Gen_px ,"Gen_px[NGens]/F");
411  MyTree->Branch("Gen_py" ,Gen_py ,"Gen_py[NGens]/F");
412  MyTree->Branch("Gen_pz" ,Gen_pz ,"Gen_pz[NGens]/F");
413  MyTree->Branch("Gen_pt" ,Gen_pt ,"Gen_pt[NGens]/F");
414  MyTree->Branch("Gen_eta" ,Gen_eta ,"Gen_eta[NGens]/F");
415  MyTree->Branch("Gen_phi" ,Gen_phi ,"Gen_phi[NGens]/F");
416  MyTree->Branch("Gen_beta" ,Gen_beta ,"Gen_beta[NGens]/F");
417  MyTree->Branch("Gen_mass" ,Gen_mass ,"Gen_mass[NGens]/F");
418  }
419 
420 }
float Vertex_z_err[1000]
float Track_dEdxE2[10000]
float Vertex_y_err[1000]
float Track_dEdxE2_NOS[10000]
unsigned int Event_LumiSection
float Gen_py[10000]
float Muon_p[10000]
unsigned int Track_dEdxE1_NOM[10000]
float Muon_csc_IBeta_err[10000]
bool Hscp_hasMuon[10000]
int Muon_csc_ndof[10000]
unsigned int Track_NOH[10000]
float Track_d0[10000]
unsigned int NGens
float Track_dEdxD1_NOS[10000]
float Vertex_y[1000]
float Muon_dt_IBeta[10000]
float Calo_ecal_crossedE[10000]
float Vertex_x_err[1000]
int Hscp_type[10000]
float Track_pt[10000]
float Track_dEdxE1_NOS[10000]
float Calo_ecal_beta_err[10000]
unsigned int Track_dEdxD1_NOM[10000]
float Calo_ecal_dEdx[10000]
float Calo_ecal_trackExitPhis[10000][10]
bool Event_triggerHLTBits[128]
float Track_dEdxD3_NOS[10000]
unsigned int Event_BXCrossing
float Gen_pt[10000]
float Rpc_beta[10000]
float Track_dEdxE1[10000]
T * make(const Args &...args) const
make new ROOT object
Definition: TFileService.h:64
float Track_dEdxE3_NOS[10000]
unsigned int NVertices
float Muon_dt_fIBeta[10000]
float Calo_ecal_energies[10000][10]
int Muon_type[10000]
float Muon_eta[10000]
float Muon_cb_IBeta_err[10000]
float Gen_beta[10000]
unsigned int Event_Orbit
float Muon_csc_fIBeta_err[10000]
float Calo_ecal_time[10000]
bool Hscp_hasRpc[10000]
float Calo_ecal_chi2s[10000][10]
float Muon_cb_fIBeta[10000]
float Track_dEdxD3[10000]
float Track_chi2[10000]
float Muon_csc_IBeta[10000]
int Track_charge[10000]
float Muon_dt_fIBeta_err[10000]
int Muon_cb_ndof[10000]
unsigned int Event_EventNumber
unsigned int NHSCPs
float Track_dEdxD2[10000]
float Track_pt_err[10000]
int Track_quality[10000]
float Gen_mass[10000]
float Gen_charge[10000]
float Calo_ecal_trackExitEtas[10000][10]
unsigned int Track_dEdxE2_NOM[10000]
float Gen_eta[10000]
float Track_phi_err[10000]
float Calo_ecal_invBeta_err[10000]
float Track_eta[10000]
float Calo_ecal_beta[10000]
unsigned int Track_dEdxD3_NOM[10000]
float Track_p[10000]
bool Hscp_hasCalo[10000]
float Track_eta_err[10000]
float Muon_cb_fIBeta_err[10000]
float Track_phi[10000]
float Calo_ecal_e1OverE9s[10000][10]
int Vertex_TrackSize[1000]
unsigned int Track_dEdxD2_NOM[10000]
unsigned int Calo_ecal_detIds[10000][10]
bool Muon_qualityValid[10000]
float Gen_phi[10000]
float Gen_p[10000]
float Muon_phi[10000]
int Gen_pdgId[10000]
int Muon_charge[10000]
float Track_dEdxE3[10000]
int Muon_dt_ndof[10000]
float Calo_ecal_outOfTimeChi2s[10000][10]
bool Hscp_hasTrack[10000]
float Muon_pt[10000]
float Calo_ecal_trackLengths[10000][10]
bool Event_triggerL1Bits[192]
float Muon_csc_fIBeta[10000]
int Calo_ecal_numCrysCrossed[10000]
float Calo_ecal_timeErrors[10000][10]
float Gen_pz[10000]
float Track_dz[10000]
float Calo_ecal_swissCrossKs[10000][10]
unsigned int Event_Store
unsigned int Event_Time
float Calo_ecal_times[10000][10]
float Vertex_z[1000]
unsigned int Track_dEdxE3_NOM[10000]
float Calo_ecal_outOfTimeEnergies[10000][10]
float Vertex_ndof[1000]
edm::Service< TFileService > tfs
float Track_dEdxD2_NOS[10000]
float Muon_cb_IBeta[10000]
unsigned int Track_ndof[10000]
float Track_dEdxD1[10000]
float Vertex_chi2[1000]
bool Vertex_isFake[1000]
float Muon_dt_IBeta_err[10000]
float Calo_ecal_time_err[10000]
float Gen_px[10000]
unsigned int Event_RunNumber
float Vertex_x[1000]
bool Event_technicalBits[64]
int HSCPTreeBuilder::ClosestMuonIndex ( reco::TrackRef  track,
std::vector< reco::MuonRef  
)
private
void HSCPTreeBuilder::endJob ( void  )
overrideprivatevirtual

Reimplemented from edm::EDFilter.

Definition at line 423 of file HSCPTreeBuilder.cc.

424 {
425 }
bool HSCPTreeBuilder::filter ( edm::Event iEvent,
const edm::EventSetup iSetup 
)
overrideprivatevirtual

Implements edm::EDFilter.

Definition at line 430 of file HSCPTreeBuilder.cc.

References susybsm::RPCBetaMeasurement::beta, edm::EventAuxiliary::bunchCrossing(), reco::LeafCandidate::charge(), gather_cfg::cout, debug, reco::LeafCandidate::energy(), reco::LeafCandidate::eta(), edm::EventID::event(), edm::Event::eventAuxiliary(), genParticleCandidates2GenParticles_cfi::genParticles, edm::EventSetup::get(), edm::Event::getByToken(), L1GtFdlWord::gtDecisionWord(), L1GtFdlWord::gtDecisionWordExtended(), L1GtFdlWord::gtTechnicalTriggerWord(), susybsm::HSCParticle::hasCaloInfo(), susybsm::HSCParticle::hasMuonRef(), susybsm::HSCParticle::hasRpcInfo(), susybsm::HSCParticle::hasTrackRef(), i, edm::EventBase::id(), MagneticField::inTesla(), edm::Ref< C, T, F >::isNonnull(), edm::EventAuxiliary::luminosityBlock(), reco::LeafCandidate::mass(), cmsRun_displayProdMFGeom_cfg::MF, metsig::muon, susybsm::HSCParticle::muonRef(), edm::EventAuxiliary::orbitNumber(), reco::LeafCandidate::p(), reco::LeafCandidate::pdgId(), reco::LeafCandidate::phi(), position, edm::Handle< T >::product(), edm::ESHandle< class >::product(), reco::LeafCandidate::pt(), reco::LeafCandidate::px(), reco::LeafCandidate::py(), reco::LeafCandidate::pz(), susybsm::HSCParticle::rpc(), edm::EventID::run(), reco::LeafCandidate::status(), edm::EventAuxiliary::storeNumber(), edm::EventAuxiliary::time(), susybsm::HSCParticle::trackRef(), susybsm::HSCParticle::type(), edm::Timestamp::value(), and PV3DBase< T, PVType, FrameType >::z().

431 {
432  bool debug = false;
433  if (debug) cout << "I'm in HSCPTreeBuilder::analyze!" << endl;
434 
435 
436  Event_EventNumber = iEvent.id().event();
437  Event_RunNumber = iEvent.id().run();
442  Event_Time = iEvent.eventAuxiliary().time().value();
443 
444  // BField part:
446  iSetup.get<IdealMagneticFieldRecord>().get(MF);
447  const MagneticField* theMagneticField = MF.product();
448  Event_BField = fabs(theMagneticField->inTesla(GlobalPoint(0,0,0)).z());
449 
450  // L1 TRIGGER part:
452  iEvent.getByToken(m_gtReadoutRecordToken, h_gtReadoutRecord);
453  L1GtFdlWord fdlWord = h_gtReadoutRecord->gtFdlWord();
454  TechnicalTriggerWord L1technical = fdlWord.gtTechnicalTriggerWord();
455  Event_PhysicsDeclared = h_gtReadoutRecord->gtFdlWord().physicsDeclared();
456  for (unsigned int i = 0; i < 64; ++i){ Event_technicalBits [i] = L1technical[i]; }
457  DecisionWord L1decision = fdlWord.gtDecisionWord();
458  for (unsigned int i = 0; i < 128; ++i){ Event_triggerL1Bits [i] = L1decision[i]; }
459  DecisionWordExtended L1decisionE = fdlWord.gtDecisionWordExtended();
460  for (unsigned int i = 0; i < 64; ++i){ Event_triggerL1Bits [128+i] = L1decisionE[i]; }
461 
462  // HLT TRIGGER part:
464  iEvent.getByToken(m_trToken, trh);
465  for(unsigned int i=0;i<trh->size() && i<128;++i){Event_triggerHLTBits[i] = trh->at(i).accept();}
466 
467  edm::Handle<reco::VertexCollection> recoVertexHandle;
468  iEvent.getByToken(m_recoVertexToken, recoVertexHandle);
469  reco::VertexCollection recoVertex = *recoVertexHandle;
470 
471  if(reccordVertexInfo){
472  NVertices = 0;
473  for(unsigned int i=0;i<recoVertex.size();i++){
474  Vertex_x [NVertices] = recoVertex[i].x();
475  Vertex_y [NVertices] = recoVertex[i].y();
476  Vertex_z [NVertices] = recoVertex[i].z();
477  Vertex_x_err [NVertices] = recoVertex[i].xError();
478  Vertex_y_err [NVertices] = recoVertex[i].yError();
479  Vertex_z_err [NVertices] = recoVertex[i].zError();
480  Vertex_TrackSize[NVertices] = recoVertex[i].tracksSize();
481  Vertex_chi2 [NVertices] = recoVertex[i].chi2();
482  Vertex_ndof [NVertices] = recoVertex[i].ndof();
483  Vertex_isFake [NVertices] = recoVertex[i].isFake();
484  NVertices++;
485  }
486  }
487 
488  // Source Collection
490  iEvent.getByToken(m_HSCPsToken, HSCPCollectionHandle);
491  susybsm::HSCParticleCollection HSCPCollection = *HSCPCollectionHandle.product();
492 
493  NHSCPs=0;
494  for(unsigned int i=0; i<HSCPCollection.size();i++){
495  susybsm::HSCParticle hscp = HSCPCollection[i];
496  reco::MuonRef muon = hscp.muonRef();
497  reco::TrackRef track = hscp.trackRef();;
498 
499  Hscp_hasTrack [NHSCPs] = hscp.hasTrackRef();
500  Hscp_hasMuon [NHSCPs] = hscp.hasMuonRef();
501  Hscp_hasRpc [NHSCPs] = hscp.hasRpcInfo();
502  Hscp_hasCalo [NHSCPs] = hscp.hasCaloInfo();
503  Hscp_type [NHSCPs] = hscp.type();
504 
505  if(track.isNonnull() && Hscp_hasTrack[NHSCPs]){
506  Track_p [NHSCPs] = track->p();
507  Track_pt [NHSCPs] = track->pt();
508  Track_pt_err [NHSCPs] = track->ptError();
509  Track_eta [NHSCPs] = track->eta();
510  Track_eta_err [NHSCPs] = track->etaError();
511  Track_phi [NHSCPs] = track->phi();
512  Track_phi_err [NHSCPs] = track->phiError();
513  Track_NOH [NHSCPs] = track->found();
514  Track_chi2 [NHSCPs] = track->chi2();
515  Track_ndof [NHSCPs] = track->ndof();
516  Track_d0 [NHSCPs] = -1.0f * track->dxy(recoVertex[0].position());
517  Track_dz [NHSCPs] = -1.0f * track->dz (recoVertex[0].position());
518  Track_quality [NHSCPs] = track->qualityMask();
519  Track_charge [NHSCPs] = track->charge();
520 /* Track_dEdxE1 [NHSCPs] = hscp.dedxEstimator1().dEdx();
521  Track_dEdxE1_NOM [NHSCPs] = hscp.dedxEstimator1().numberOfMeasurements();
522  Track_dEdxE1_NOS [NHSCPs] = hscp.dedxEstimator1().numberOfSaturatedMeasurements();
523  Track_dEdxE2 [NHSCPs] = hscp.dedxEstimator2().dEdx();
524  Track_dEdxE2_NOM [NHSCPs] = hscp.dedxEstimator2().numberOfMeasurements();
525  Track_dEdxE2_NOS [NHSCPs] = hscp.dedxEstimator2().numberOfSaturatedMeasurements();
526  Track_dEdxE3 [NHSCPs] = hscp.dedxEstimator3().dEdx();
527  Track_dEdxE3_NOM [NHSCPs] = hscp.dedxEstimator3().numberOfMeasurements();
528  Track_dEdxE3_NOS [NHSCPs] = hscp.dedxEstimator3().numberOfSaturatedMeasurements();
529  Track_dEdxD1 [NHSCPs] = hscp.dedxDiscriminator1().dEdx();
530  Track_dEdxD1_NOM [NHSCPs] = hscp.dedxDiscriminator1().numberOfMeasurements();
531  Track_dEdxD1_NOS [NHSCPs] = hscp.dedxDiscriminator1().numberOfSaturatedMeasurements();
532  Track_dEdxD2 [NHSCPs] = hscp.dedxDiscriminator2().dEdx();
533  Track_dEdxD2_NOM [NHSCPs] = hscp.dedxDiscriminator2().numberOfMeasurements();
534  Track_dEdxD2_NOS [NHSCPs] = hscp.dedxDiscriminator2().numberOfSaturatedMeasurements();
535  Track_dEdxD3 [NHSCPs] = hscp.dedxDiscriminator3().dEdx();
536  Track_dEdxD3_NOM [NHSCPs] = hscp.dedxDiscriminator3().numberOfMeasurements();
537  Track_dEdxD3_NOS [NHSCPs] = hscp.dedxDiscriminator3().numberOfSaturatedMeasurements();
538 */
539  }
540 
541  if(muon.isNonnull() && Hscp_hasMuon[NHSCPs]){
542  Muon_p [NHSCPs] = muon->p();
543  Muon_pt [NHSCPs] = muon->pt();
544  Muon_eta [NHSCPs] = muon->eta();
545  Muon_phi [NHSCPs] = muon->phi();
546  Muon_type [NHSCPs] = muon->type();
547  Muon_qualityValid [NHSCPs] = muon->isQualityValid();
548  Muon_charge [NHSCPs] = muon->charge();
549 /* Muon_dt_IBeta [NHSCPs] = hscp.muonTimeDt().inverseBeta();
550  Muon_dt_IBeta_err [NHSCPs] = hscp.muonTimeDt().inverseBetaErr();
551  Muon_dt_fIBeta [NHSCPs] = hscp.muonTimeDt().freeInverseBeta();
552  Muon_dt_fIBeta_err [NHSCPs] = hscp.muonTimeDt().freeInverseBetaErr();
553  Muon_dt_ndof [NHSCPs] = hscp.muonTimeDt().nDof();
554  Muon_csc_IBeta [NHSCPs] = hscp.muonTimeCsc().inverseBeta();
555  Muon_csc_IBeta_err [NHSCPs] = hscp.muonTimeCsc().inverseBetaErr();
556  Muon_csc_fIBeta [NHSCPs] = hscp.muonTimeCsc().freeInverseBeta();
557  Muon_csc_fIBeta_err[NHSCPs] = hscp.muonTimeCsc().freeInverseBetaErr();
558  Muon_csc_ndof [NHSCPs] = hscp.muonTimeCsc().nDof();
559  Muon_cb_IBeta [NHSCPs] = hscp.muonTimeCombined().inverseBeta();
560  Muon_cb_IBeta_err [NHSCPs] = hscp.muonTimeCombined().inverseBetaErr();
561  Muon_cb_fIBeta [NHSCPs] = hscp.muonTimeCombined().freeInverseBeta();
562  Muon_cb_fIBeta_err [NHSCPs] = hscp.muonTimeCombined().freeInverseBetaErr();
563  Muon_cb_ndof [NHSCPs] = hscp.muonTimeCombined().nDof();
564 */
565  }
566 
567  if(hscp.hasCaloInfo()){
568 // Calo_ecal_crossedE [NHSCPs] = hscp.calo().ecalCrossedEnergy;
569 // Calo_ecal_beta [NHSCPs] = hscp.calo().ecalBeta;
570 // Calo_ecal_beta_err [NHSCPs] = hscp.calo().ecalBetaError;
571 // Calo_ecal_invBeta_err [NHSCPs] = hscp.calo().ecalInvBetaError;
572 // Calo_ecal_dEdx [NHSCPs] = hscp.calo().ecalDeDx;
573 // Calo_ecal_time [NHSCPs] = hscp.calo().ecalTime;
574 // Calo_ecal_time_err [NHSCPs] = hscp.calo().ecalTimeError;
575 // Calo_ecal_numCrysCrossed[NHSCPs] = hscp.calo().ecalCrysCrossed;
576 /* for(int i=0; i < Calo_ecal_numCrysCrossed[NHSCPs] && i < MAX_ECALCRYS; ++i)
577  {
578  Calo_ecal_swissCrossKs [NHSCPs][i] = hscp.calo().ecalSwissCrossKs[i];
579  Calo_ecal_e1OverE9s [NHSCPs][i] = hscp.calo().ecalE1OverE9s[i];
580  Calo_ecal_trackLengths [NHSCPs][i] = hscp.calo().ecalTrackLengths[i];
581  GlobalPoint exitPosition = hscp.calo().ecalTrackExitPositions[i];
582  Calo_ecal_trackExitEtas [NHSCPs][i] = exitPosition.eta();
583  Calo_ecal_trackExitPhis [NHSCPs][i] = exitPosition.phi();
584  Calo_ecal_energies [NHSCPs][i] = hscp.calo().ecalEnergies[i];
585  Calo_ecal_outOfTimeEnergies[NHSCPs][i] = hscp.calo().ecalOutOfTimeEnergies[i];
586  Calo_ecal_chi2s [NHSCPs][i] = hscp.calo().ecalChi2s[i];
587  Calo_ecal_outOfTimeChi2s [NHSCPs][i] = hscp.calo().ecalOutOfTimeChi2s[i];
588  Calo_ecal_times [NHSCPs][i] = hscp.calo().ecalTimes[i];
589  Calo_ecal_timeErrors [NHSCPs][i] = hscp.calo().ecalTimeErrors[i];
590  Calo_ecal_detIds [NHSCPs][i] = hscp.calo().ecalDetIds[i];
591  }
592 */
593  }
594 
595  if(Hscp_hasRpc[NHSCPs]){
596  Rpc_beta [NHSCPs] = hscp.rpc().beta;
597  }
598 
599  NHSCPs++;
600  }
601 
602 
603  if(reccordGenInfo){
605  iEvent.getByToken(m_genParticlesToken, genParticles);
606  NGens=0;
607  for(unsigned int i=0;i<genParticles->size();i++){
608  const GenParticle & part = (*genParticles)[i];
609  if(part.status()!=1)continue;
610  if(part.pt()<5)continue;
611 // if(fabs(part.pdgId())<1000000) continue;
612 
613  Gen_pdgId [NGens] = part.pdgId();
614  Gen_charge[NGens] = part.charge();
615  Gen_p [NGens] = part.p();
616  Gen_px [NGens] = part.px();
617  Gen_py [NGens] = part.py();
618  Gen_pz [NGens] = part.pz();
619  Gen_pt [NGens] = part.pt();
620  Gen_eta [NGens] = part.eta();
621  Gen_phi [NGens] = part.phi();
622  Gen_beta [NGens] = part.p()/part.energy();
623  Gen_mass [NGens] = part.mass();
624  NGens++;
625  }
626  }
627 
628 
629  MyTree->Fill();
630  return true;
631 }
RunNumber_t run() const
Definition: EventID.h:39
float Vertex_z_err[1000]
float Vertex_y_err[1000]
unsigned int Event_LumiSection
EventNumber_t event() const
Definition: EventID.h:41
int i
Definition: DBlmapReader.cc:9
float Gen_py[10000]
const TechnicalTriggerWord & gtTechnicalTriggerWord() const
get/set technical trigger bits
Definition: L1GtFdlWord.h:149
float Muon_p[10000]
bool isNonnull() const
Checks for non-null.
Definition: Ref.h:252
bool Hscp_hasMuon[10000]
unsigned int Track_NOH[10000]
float Track_d0[10000]
unsigned int NGens
float Vertex_y[1000]
const RPCBetaMeasurement & rpc() const
Definition: HSCParticle.h:77
virtual double energy() const final
energy
bool getByToken(EDGetToken token, Handle< PROD > &result) const
Definition: Event.h:462
float Vertex_x_err[1000]
int Hscp_type[10000]
float Track_pt[10000]
virtual GlobalVector inTesla(const GlobalPoint &gp) const =0
Field value ad specified global point, in Tesla.
bool Event_triggerHLTBits[128]
Timestamp const & time() const
unsigned int Event_BXCrossing
virtual double phi() const final
momentum azimuthal angle
float Gen_pt[10000]
float Rpc_beta[10000]
std::vector< Vertex > VertexCollection
collection of Vertex objects
Definition: VertexFwd.h:9
unsigned int NVertices
int Muon_type[10000]
float Muon_eta[10000]
bool hasTrackRef() const
Definition: HSCParticle.h:57
int bunchCrossing() const
LuminosityBlockNumber_t luminosityBlock() const
float Gen_beta[10000]
unsigned int Event_Orbit
bool Hscp_hasRpc[10000]
virtual int status() const final
status word
std::vector< bool > DecisionWordExtended
std::vector< HSCParticle > HSCParticleCollection
Definition: HSCParticle.h:94
float Track_chi2[10000]
int storeNumber() const
int Track_charge[10000]
unsigned int Event_EventNumber
int orbitNumber() const
unsigned int NHSCPs
std::vector< bool > DecisionWord
typedefs
float Track_pt_err[10000]
int Track_quality[10000]
float Gen_mass[10000]
T z() const
Definition: PV3DBase.h:64
float Gen_charge[10000]
virtual int charge() const final
electric charge
Definition: LeafCandidate.h:91
float Gen_eta[10000]
float Track_phi_err[10000]
EDGetTokenT< L1GlobalTriggerReadoutRecord > m_gtReadoutRecordToken
std::vector< bool > TechnicalTriggerWord
technical trigger bits (64 bits)
float Track_eta[10000]
virtual double py() const final
y coordinate of momentum vector
float Track_p[10000]
bool Hscp_hasCalo[10000]
float Track_eta_err[10000]
virtual double mass() const final
mass
virtual double pz() const final
z coordinate of momentum vector
float Track_phi[10000]
int Vertex_TrackSize[1000]
bool Muon_qualityValid[10000]
float Gen_phi[10000]
float Gen_p[10000]
float Muon_phi[10000]
int Gen_pdgId[10000]
EventAuxiliary const & eventAuxiliary() const
Definition: Event.h:77
reco::MuonRef muonRef() const
Definition: HSCParticle.h:74
int Muon_charge[10000]
EDGetTokenT< GenParticleCollection > m_genParticlesToken
#define debug
Definition: HDRShower.cc:19
EDGetTokenT< edm::TriggerResults > m_trToken
T const * product() const
Definition: Handle.h:81
part
Definition: HCALResponse.h:20
const T & get() const
Definition: EventSetup.h:56
T const * product() const
Definition: ESHandle.h:86
const DecisionWord & gtDecisionWord() const
get/set/print algorithms bits (decision word)
Definition: L1GtFdlWord.h:171
bool Hscp_hasTrack[10000]
float Muon_pt[10000]
bool Event_triggerL1Bits[192]
virtual double p() const final
magnitude of momentum vector
int type() const
Definition: HSCParticle.cc:5
virtual int pdgId() const final
PDG identifier.
reco::TrackRef trackRef() const
Definition: HSCParticle.h:72
edm::EventID id() const
Definition: EventBase.h:59
bool hasRpcInfo() const
Definition: HSCParticle.h:59
static int position[264][3]
Definition: ReadPGInfo.cc:509
float Gen_pz[10000]
float Track_dz[10000]
unsigned int Event_Store
virtual double px() const final
x coordinate of momentum vector
tuple cout
Definition: gather_cfg.py:145
unsigned int Event_Time
virtual double eta() const final
momentum pseudorapidity
float Vertex_z[1000]
bool hasMuonRef() const
Definition: HSCParticle.h:55
const DecisionWordExtended & gtDecisionWordExtended() const
get/set extended algorithms bits (extended decision word)
Definition: L1GtFdlWord.h:203
float Vertex_ndof[1000]
bool hasCaloInfo() const
Definition: HSCParticle.h:60
EDGetTokenT< reco::VertexCollection > m_recoVertexToken
unsigned int Track_ndof[10000]
float Vertex_chi2[1000]
bool Vertex_isFake[1000]
TimeValue_t value() const
Definition: Timestamp.h:56
EDGetTokenT< susybsm::HSCParticleCollection > m_HSCPsToken
float Gen_px[10000]
unsigned int Event_RunNumber
float Vertex_x[1000]
virtual double pt() const final
transverse momentum
bool Event_technicalBits[64]

Member Data Documentation

float HSCPTreeBuilder::Calo_ecal_beta[10000]
private

Definition at line 231 of file HSCPTreeBuilder.cc.

float HSCPTreeBuilder::Calo_ecal_beta_err[10000]
private

Definition at line 232 of file HSCPTreeBuilder.cc.

float HSCPTreeBuilder::Calo_ecal_chi2s[10000][10]
private

Definition at line 245 of file HSCPTreeBuilder.cc.

float HSCPTreeBuilder::Calo_ecal_crossedE[10000]
private

Definition at line 230 of file HSCPTreeBuilder.cc.

float HSCPTreeBuilder::Calo_ecal_dEdx[10000]
private

Definition at line 234 of file HSCPTreeBuilder.cc.

unsigned int HSCPTreeBuilder::Calo_ecal_detIds[10000][10]
private

Definition at line 249 of file HSCPTreeBuilder.cc.

float HSCPTreeBuilder::Calo_ecal_e1OverE9s[10000][10]
private

Definition at line 239 of file HSCPTreeBuilder.cc.

float HSCPTreeBuilder::Calo_ecal_energies[10000][10]
private

Definition at line 243 of file HSCPTreeBuilder.cc.

float HSCPTreeBuilder::Calo_ecal_invBeta_err[10000]
private

Definition at line 233 of file HSCPTreeBuilder.cc.

int HSCPTreeBuilder::Calo_ecal_numCrysCrossed[10000]
private

Definition at line 237 of file HSCPTreeBuilder.cc.

float HSCPTreeBuilder::Calo_ecal_outOfTimeChi2s[10000][10]
private

Definition at line 246 of file HSCPTreeBuilder.cc.

float HSCPTreeBuilder::Calo_ecal_outOfTimeEnergies[10000][10]
private

Definition at line 244 of file HSCPTreeBuilder.cc.

float HSCPTreeBuilder::Calo_ecal_swissCrossKs[10000][10]
private

Definition at line 238 of file HSCPTreeBuilder.cc.

float HSCPTreeBuilder::Calo_ecal_time[10000]
private

Definition at line 235 of file HSCPTreeBuilder.cc.

float HSCPTreeBuilder::Calo_ecal_time_err[10000]
private

Definition at line 236 of file HSCPTreeBuilder.cc.

float HSCPTreeBuilder::Calo_ecal_timeErrors[10000][10]
private

Definition at line 248 of file HSCPTreeBuilder.cc.

float HSCPTreeBuilder::Calo_ecal_times[10000][10]
private

Definition at line 247 of file HSCPTreeBuilder.cc.

float HSCPTreeBuilder::Calo_ecal_trackExitEtas[10000][10]
private

Definition at line 241 of file HSCPTreeBuilder.cc.

float HSCPTreeBuilder::Calo_ecal_trackExitPhis[10000][10]
private

Definition at line 242 of file HSCPTreeBuilder.cc.

float HSCPTreeBuilder::Calo_ecal_trackLengths[10000][10]
private

Definition at line 240 of file HSCPTreeBuilder.cc.

float HSCPTreeBuilder::Event_BField
private

Definition at line 154 of file HSCPTreeBuilder.cc.

unsigned int HSCPTreeBuilder::Event_BXCrossing
private

Definition at line 149 of file HSCPTreeBuilder.cc.

unsigned int HSCPTreeBuilder::Event_EventNumber
private

Definition at line 146 of file HSCPTreeBuilder.cc.

unsigned int HSCPTreeBuilder::Event_LumiSection
private

Definition at line 148 of file HSCPTreeBuilder.cc.

unsigned int HSCPTreeBuilder::Event_Orbit
private

Definition at line 150 of file HSCPTreeBuilder.cc.

bool HSCPTreeBuilder::Event_PhysicsDeclared
private

Definition at line 153 of file HSCPTreeBuilder.cc.

unsigned int HSCPTreeBuilder::Event_RunNumber
private

Definition at line 147 of file HSCPTreeBuilder.cc.

unsigned int HSCPTreeBuilder::Event_Store
private

Definition at line 151 of file HSCPTreeBuilder.cc.

bool HSCPTreeBuilder::Event_technicalBits[64]
private

Definition at line 145 of file HSCPTreeBuilder.cc.

unsigned int HSCPTreeBuilder::Event_Time
private

Definition at line 152 of file HSCPTreeBuilder.cc.

bool HSCPTreeBuilder::Event_triggerHLTBits[128]
private

Definition at line 144 of file HSCPTreeBuilder.cc.

bool HSCPTreeBuilder::Event_triggerL1Bits[192]
private

Definition at line 143 of file HSCPTreeBuilder.cc.

float HSCPTreeBuilder::Gen_beta[10000]
private

Definition at line 261 of file HSCPTreeBuilder.cc.

float HSCPTreeBuilder::Gen_charge[10000]
private

Definition at line 253 of file HSCPTreeBuilder.cc.

float HSCPTreeBuilder::Gen_eta[10000]
private

Definition at line 259 of file HSCPTreeBuilder.cc.

float HSCPTreeBuilder::Gen_mass[10000]
private

Definition at line 262 of file HSCPTreeBuilder.cc.

float HSCPTreeBuilder::Gen_p[10000]
private

Definition at line 254 of file HSCPTreeBuilder.cc.

int HSCPTreeBuilder::Gen_pdgId[10000]
private

Definition at line 252 of file HSCPTreeBuilder.cc.

float HSCPTreeBuilder::Gen_phi[10000]
private

Definition at line 260 of file HSCPTreeBuilder.cc.

float HSCPTreeBuilder::Gen_pt[10000]
private

Definition at line 258 of file HSCPTreeBuilder.cc.

float HSCPTreeBuilder::Gen_px[10000]
private

Definition at line 255 of file HSCPTreeBuilder.cc.

float HSCPTreeBuilder::Gen_py[10000]
private

Definition at line 256 of file HSCPTreeBuilder.cc.

float HSCPTreeBuilder::Gen_pz[10000]
private

Definition at line 257 of file HSCPTreeBuilder.cc.

bool HSCPTreeBuilder::Hscp_hasCalo[10000]
private

Definition at line 172 of file HSCPTreeBuilder.cc.

bool HSCPTreeBuilder::Hscp_hasMuon[10000]
private

Definition at line 170 of file HSCPTreeBuilder.cc.

bool HSCPTreeBuilder::Hscp_hasRpc[10000]
private

Definition at line 171 of file HSCPTreeBuilder.cc.

bool HSCPTreeBuilder::Hscp_hasTrack[10000]
private

Definition at line 169 of file HSCPTreeBuilder.cc.

int HSCPTreeBuilder::Hscp_type[10000]
private

Definition at line 173 of file HSCPTreeBuilder.cc.

const edm::Event* HSCPTreeBuilder::iEvent_
private

Definition at line 130 of file HSCPTreeBuilder.cc.

const edm::EventSetup* HSCPTreeBuilder::iSetup_
private

Definition at line 129 of file HSCPTreeBuilder.cc.

EDGetTokenT<GenParticleCollection> HSCPTreeBuilder::m_genParticlesToken
private

Definition at line 137 of file HSCPTreeBuilder.cc.

EDGetTokenT<L1GlobalTriggerReadoutRecord> HSCPTreeBuilder::m_gtReadoutRecordToken
private

Definition at line 134 of file HSCPTreeBuilder.cc.

EDGetTokenT<susybsm::HSCParticleCollection > HSCPTreeBuilder::m_HSCPsToken
private

Definition at line 138 of file HSCPTreeBuilder.cc.

EDGetTokenT<reco::VertexCollection> HSCPTreeBuilder::m_recoVertexToken
private

Definition at line 136 of file HSCPTreeBuilder.cc.

EDGetTokenT<edm::TriggerResults> HSCPTreeBuilder::m_trToken
private

Definition at line 135 of file HSCPTreeBuilder.cc.

float HSCPTreeBuilder::Muon_cb_fIBeta[10000]
private

Definition at line 225 of file HSCPTreeBuilder.cc.

float HSCPTreeBuilder::Muon_cb_fIBeta_err[10000]
private

Definition at line 226 of file HSCPTreeBuilder.cc.

float HSCPTreeBuilder::Muon_cb_IBeta[10000]
private

Definition at line 223 of file HSCPTreeBuilder.cc.

float HSCPTreeBuilder::Muon_cb_IBeta_err[10000]
private

Definition at line 224 of file HSCPTreeBuilder.cc.

int HSCPTreeBuilder::Muon_cb_ndof[10000]
private

Definition at line 227 of file HSCPTreeBuilder.cc.

int HSCPTreeBuilder::Muon_charge[10000]
private

Definition at line 212 of file HSCPTreeBuilder.cc.

float HSCPTreeBuilder::Muon_csc_fIBeta[10000]
private

Definition at line 220 of file HSCPTreeBuilder.cc.

float HSCPTreeBuilder::Muon_csc_fIBeta_err[10000]
private

Definition at line 221 of file HSCPTreeBuilder.cc.

float HSCPTreeBuilder::Muon_csc_IBeta[10000]
private

Definition at line 218 of file HSCPTreeBuilder.cc.

float HSCPTreeBuilder::Muon_csc_IBeta_err[10000]
private

Definition at line 219 of file HSCPTreeBuilder.cc.

int HSCPTreeBuilder::Muon_csc_ndof[10000]
private

Definition at line 222 of file HSCPTreeBuilder.cc.

float HSCPTreeBuilder::Muon_dt_fIBeta[10000]
private

Definition at line 215 of file HSCPTreeBuilder.cc.

float HSCPTreeBuilder::Muon_dt_fIBeta_err[10000]
private

Definition at line 216 of file HSCPTreeBuilder.cc.

float HSCPTreeBuilder::Muon_dt_IBeta[10000]
private

Definition at line 213 of file HSCPTreeBuilder.cc.

float HSCPTreeBuilder::Muon_dt_IBeta_err[10000]
private

Definition at line 214 of file HSCPTreeBuilder.cc.

int HSCPTreeBuilder::Muon_dt_ndof[10000]
private

Definition at line 217 of file HSCPTreeBuilder.cc.

float HSCPTreeBuilder::Muon_eta[10000]
private

Definition at line 208 of file HSCPTreeBuilder.cc.

float HSCPTreeBuilder::Muon_p[10000]
private

Definition at line 206 of file HSCPTreeBuilder.cc.

float HSCPTreeBuilder::Muon_phi[10000]
private

Definition at line 209 of file HSCPTreeBuilder.cc.

float HSCPTreeBuilder::Muon_pt[10000]
private

Definition at line 207 of file HSCPTreeBuilder.cc.

bool HSCPTreeBuilder::Muon_qualityValid[10000]
private

Definition at line 211 of file HSCPTreeBuilder.cc.

int HSCPTreeBuilder::Muon_type[10000]
private

Definition at line 210 of file HSCPTreeBuilder.cc.

TTree* HSCPTreeBuilder::MyTree
private

Definition at line 142 of file HSCPTreeBuilder.cc.

unsigned int HSCPTreeBuilder::NGens
private

Definition at line 251 of file HSCPTreeBuilder.cc.

unsigned int HSCPTreeBuilder::NHSCPs
private

Definition at line 168 of file HSCPTreeBuilder.cc.

unsigned int HSCPTreeBuilder::NVertices
private

Definition at line 156 of file HSCPTreeBuilder.cc.

bool HSCPTreeBuilder::reccordGenInfo
private

Definition at line 140 of file HSCPTreeBuilder.cc.

bool HSCPTreeBuilder::reccordVertexInfo
private

Definition at line 139 of file HSCPTreeBuilder.cc.

float HSCPTreeBuilder::Rpc_beta[10000]
private

Definition at line 228 of file HSCPTreeBuilder.cc.

edm::Service<TFileService> HSCPTreeBuilder::tfs
private

Definition at line 132 of file HSCPTreeBuilder.cc.

int HSCPTreeBuilder::Track_charge[10000]
private

Definition at line 187 of file HSCPTreeBuilder.cc.

float HSCPTreeBuilder::Track_chi2[10000]
private

Definition at line 178 of file HSCPTreeBuilder.cc.

float HSCPTreeBuilder::Track_d0[10000]
private

Definition at line 185 of file HSCPTreeBuilder.cc.

float HSCPTreeBuilder::Track_dEdxD1[10000]
private

Definition at line 197 of file HSCPTreeBuilder.cc.

unsigned int HSCPTreeBuilder::Track_dEdxD1_NOM[10000]
private

Definition at line 199 of file HSCPTreeBuilder.cc.

float HSCPTreeBuilder::Track_dEdxD1_NOS[10000]
private

Definition at line 198 of file HSCPTreeBuilder.cc.

float HSCPTreeBuilder::Track_dEdxD2[10000]
private

Definition at line 200 of file HSCPTreeBuilder.cc.

unsigned int HSCPTreeBuilder::Track_dEdxD2_NOM[10000]
private

Definition at line 202 of file HSCPTreeBuilder.cc.

float HSCPTreeBuilder::Track_dEdxD2_NOS[10000]
private

Definition at line 201 of file HSCPTreeBuilder.cc.

float HSCPTreeBuilder::Track_dEdxD3[10000]
private

Definition at line 203 of file HSCPTreeBuilder.cc.

unsigned int HSCPTreeBuilder::Track_dEdxD3_NOM[10000]
private

Definition at line 205 of file HSCPTreeBuilder.cc.

float HSCPTreeBuilder::Track_dEdxD3_NOS[10000]
private

Definition at line 204 of file HSCPTreeBuilder.cc.

float HSCPTreeBuilder::Track_dEdxE1[10000]
private

Definition at line 188 of file HSCPTreeBuilder.cc.

unsigned int HSCPTreeBuilder::Track_dEdxE1_NOM[10000]
private

Definition at line 190 of file HSCPTreeBuilder.cc.

float HSCPTreeBuilder::Track_dEdxE1_NOS[10000]
private

Definition at line 189 of file HSCPTreeBuilder.cc.

float HSCPTreeBuilder::Track_dEdxE2[10000]
private

Definition at line 191 of file HSCPTreeBuilder.cc.

unsigned int HSCPTreeBuilder::Track_dEdxE2_NOM[10000]
private

Definition at line 193 of file HSCPTreeBuilder.cc.

float HSCPTreeBuilder::Track_dEdxE2_NOS[10000]
private

Definition at line 192 of file HSCPTreeBuilder.cc.

float HSCPTreeBuilder::Track_dEdxE3[10000]
private

Definition at line 194 of file HSCPTreeBuilder.cc.

unsigned int HSCPTreeBuilder::Track_dEdxE3_NOM[10000]
private

Definition at line 196 of file HSCPTreeBuilder.cc.

float HSCPTreeBuilder::Track_dEdxE3_NOS[10000]
private

Definition at line 195 of file HSCPTreeBuilder.cc.

float HSCPTreeBuilder::Track_dz[10000]
private

Definition at line 184 of file HSCPTreeBuilder.cc.

float HSCPTreeBuilder::Track_eta[10000]
private

Definition at line 180 of file HSCPTreeBuilder.cc.

float HSCPTreeBuilder::Track_eta_err[10000]
private

Definition at line 181 of file HSCPTreeBuilder.cc.

unsigned int HSCPTreeBuilder::Track_ndof[10000]
private

Definition at line 179 of file HSCPTreeBuilder.cc.

unsigned int HSCPTreeBuilder::Track_NOH[10000]
private

Definition at line 174 of file HSCPTreeBuilder.cc.

float HSCPTreeBuilder::Track_p[10000]
private

Definition at line 175 of file HSCPTreeBuilder.cc.

float HSCPTreeBuilder::Track_phi[10000]
private

Definition at line 182 of file HSCPTreeBuilder.cc.

float HSCPTreeBuilder::Track_phi_err[10000]
private

Definition at line 183 of file HSCPTreeBuilder.cc.

float HSCPTreeBuilder::Track_pt[10000]
private

Definition at line 176 of file HSCPTreeBuilder.cc.

float HSCPTreeBuilder::Track_pt_err[10000]
private

Definition at line 177 of file HSCPTreeBuilder.cc.

int HSCPTreeBuilder::Track_quality[10000]
private

Definition at line 186 of file HSCPTreeBuilder.cc.

float HSCPTreeBuilder::Vertex_chi2[1000]
private

Definition at line 164 of file HSCPTreeBuilder.cc.

bool HSCPTreeBuilder::Vertex_isFake[1000]
private

Definition at line 166 of file HSCPTreeBuilder.cc.

float HSCPTreeBuilder::Vertex_ndof[1000]
private

Definition at line 165 of file HSCPTreeBuilder.cc.

int HSCPTreeBuilder::Vertex_TrackSize[1000]
private

Definition at line 163 of file HSCPTreeBuilder.cc.

float HSCPTreeBuilder::Vertex_x[1000]
private

Definition at line 157 of file HSCPTreeBuilder.cc.

float HSCPTreeBuilder::Vertex_x_err[1000]
private

Definition at line 160 of file HSCPTreeBuilder.cc.

float HSCPTreeBuilder::Vertex_y[1000]
private

Definition at line 158 of file HSCPTreeBuilder.cc.

float HSCPTreeBuilder::Vertex_y_err[1000]
private

Definition at line 161 of file HSCPTreeBuilder.cc.

float HSCPTreeBuilder::Vertex_z[1000]
private

Definition at line 159 of file HSCPTreeBuilder.cc.

float HSCPTreeBuilder::Vertex_z_err[1000]
private

Definition at line 162 of file HSCPTreeBuilder.cc.