#include <TreeProducerCalibSimul.h>
|
virtual void | analyze (const edm::Event &, const edm::EventSetup &) |
|
virtual void | beginJob () |
|
virtual void | endJob () |
|
| TreeProducerCalibSimul (const edm::ParameterSet &) |
|
| ~TreeProducerCalibSimul () |
|
void | callWhenNewProductsRegistered (std::function< void(BranchDescription const &)> const &func) |
|
| EDAnalyzer () |
|
SerialTaskQueue * | globalLuminosityBlocksQueue () |
|
SerialTaskQueue * | globalRunsQueue () |
|
ModuleDescription const & | moduleDescription () const |
|
std::string | workerType () const |
|
| ~EDAnalyzer () override |
|
std::vector< ConsumesInfo > | consumesInfo () const |
|
void | convertCurrentProcessAlias (std::string const &processName) |
| Convert "@currentProcess" in InputTag process names to the actual current process name. More...
|
|
| EDConsumerBase () |
|
| EDConsumerBase (EDConsumerBase &&)=default |
|
| EDConsumerBase (EDConsumerBase const &)=delete |
|
ESProxyIndex const * | esGetTokenIndices (edm::Transition iTrans) const |
|
ProductResolverIndexAndSkipBit | indexFrom (EDGetToken, BranchType, TypeID const &) const |
|
void | itemsMayGet (BranchType, std::vector< ProductResolverIndexAndSkipBit > &) const |
|
void | itemsToGet (BranchType, std::vector< ProductResolverIndexAndSkipBit > &) const |
|
std::vector< ProductResolverIndexAndSkipBit > const & | itemsToGetFrom (BranchType iType) const |
|
void | labelsForToken (EDGetToken iToken, Labels &oLabels) const |
|
void | modulesWhoseProductsAreConsumed (std::vector< ModuleDescription const * > &modules, ProductRegistry const &preg, std::map< std::string, ModuleDescription const * > const &labelsToDesc, std::string const &processName) const |
|
EDConsumerBase & | operator= (EDConsumerBase &&)=default |
|
EDConsumerBase const & | operator= (EDConsumerBase const &)=delete |
|
bool | registeredToConsume (ProductResolverIndex, bool, BranchType) const |
|
bool | registeredToConsumeMany (TypeID const &, BranchType) const |
|
ProductResolverIndexAndSkipBit | uncheckedIndexFrom (EDGetToken) const |
|
void | updateLookup (BranchType iBranchType, ProductResolverIndexHelper const &, bool iPrefetchMayGet) |
|
void | updateLookup (eventsetup::ESRecordsToProxyIndices const &) |
|
virtual | ~EDConsumerBase () noexcept(false) |
|
|
typedef EDAnalyzer | ModuleType |
|
typedef ProductLabels | Labels |
|
static const std::string & | baseType () |
|
static void | fillDescriptions (ConfigurationDescriptions &descriptions) |
|
static void | prevalidate (ConfigurationDescriptions &) |
|
static bool | wantsGlobalLuminosityBlocks () |
|
static bool | wantsGlobalRuns () |
|
static bool | wantsStreamLuminosityBlocks () |
|
static bool | wantsStreamRuns () |
|
EDGetToken | consumes (const TypeToGet &id, edm::InputTag const &tag) |
|
template<typename ProductType , BranchType B = InEvent> |
EDGetTokenT< ProductType > | consumes (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 ESProduct , typename ESRecord , Transition Tr = Transition::Event> |
auto | esConsumes () |
|
template<typename ESProduct , typename ESRecord , Transition Tr = Transition::Event> |
auto | esConsumes (ESInputTag const &tag) |
|
EDGetToken | mayConsume (const TypeToGet &id, edm::InputTag const &tag) |
|
template<BranchType B> |
EDGetToken | mayConsume (const TypeToGet &id, edm::InputTag const &tag) |
|
template<typename ProductType , BranchType B = InEvent> |
EDGetTokenT< ProductType > | mayConsume (edm::InputTag const &tag) |
|
Definition at line 59 of file TreeProducerCalibSimul.h.
◆ TreeProducerCalibSimul()
◆ ~TreeProducerCalibSimul()
TreeProducerCalibSimul::~TreeProducerCalibSimul |
( |
| ) |
|
◆ analyze()
Implements edm::EDAnalyzer.
Definition at line 95 of file TreeProducerCalibSimul.cc.
145 evtHeader = pEventHeader.
product();
153 if (!recTDC) {
noTdc++;
return; }
154 if (!recHodo) {
noHodo++;
return; }
155 if (!evtHeader) {
noHeader++;
return; }
168 int nomXtalInBeam = -999;
169 int nextXtalInBeam = -999;
172 if (xtalInBeamId==
EBDetId(0)){
return; }
173 int mySupCry = xtalInBeamId.ic();
174 int mySupEta = xtalInBeamId.ieta();
175 int mySupPhi = xtalInBeamId.iphi();
180 double x = recHodo->
posX();
181 double y = recHodo->
posY();
184 double qx = recHodo->
qualX();
185 double qy = recHodo->
qualY();
190 double tdcOffset = recTDC->
offset();
199 for (
unsigned int icry=0; icry<49; icry++){
200 unsigned int row = icry/7;
201 unsigned int column = icry%7;
206 if ( Xtals7x7[icry].
ism() == 1){
208 crystal[icry] = Xtals7x7[icry].
ic();
211 crystal[icry] = -100;
229 int maxEneCry = 9999;
230 int maxEneInMatrix = -999;
233 maxEneCry = crystal[
ii];
234 maxEneInMatrix =
ii;}
244 myTree->
fillInfo(
run,
event, mySupCry, maxEneCry, nomXtalInBeam, nextXtalInBeam, mySupEta, mySupPhi, tbm,
x,
y, Xcal, Ycal,
sx,
sy, qx, qy, tdcOffset, allMatrix,
energy, crystal);
References gather_cfg::cout, filterRecHits_cfi::EBRecHits, HCALHighEnergyHPDFilter_cfi::energy, EBDetId::ETAPHIMODE, EcalTBEventHeader::eventNumber(), EBDetId::ic(), EBDetId::ieta(), iEvent, cuy::ii, EBDetId::iphi(), ecalpyutils::ism(), HcalResponse_cfi::maxEne, EcalTBTDCRecInfo::offset(), EcalTBHodoscopeRecInfo::posX(), EcalTBHodoscopeRecInfo::posY(), edm::Handle< T >::product(), EcalTBHodoscopeRecInfo::qualX(), EcalTBHodoscopeRecInfo::qualY(), writedatasetfile::run, EcalTBHodoscopeRecInfo::slopeX(), EcalTBHodoscopeRecInfo::slopeY(), EBDetId::SMCRYSTALMODE, fftjetcommon_cfi::sx, and fftjetcommon_cfi::sy.
◆ beginJob()
void TreeProducerCalibSimul::beginJob |
( |
void |
| ) |
|
|
virtual |
◆ endJob()
void TreeProducerCalibSimul::endJob |
( |
void |
| ) |
|
|
virtual |
Reimplemented from edm::EDAnalyzer.
Definition at line 74 of file TreeProducerCalibSimul.cc.
77 cout <<
"EndJob" << endl;
80 ofstream *MyOut =
new ofstream(
txtfile_.c_str());
81 *MyOut <<
"total events: " <<
tot_events << endl;
82 *MyOut <<
"events skipped because of no hits: " <<
noHits << endl;
83 *MyOut <<
"events skipped because of no hodos: " <<
noHodo << endl;
84 *MyOut <<
"events skipped because of no tdc: " <<
noTdc << endl;
85 *MyOut <<
"events skipped because of no header: " <<
noHeader << endl;
86 *MyOut <<
"total OK events (passing the basic selection): " <<
tot_events_ok << endl;
References gather_cfg::cout.
◆ EBRecHitCollection_
std::string TreeProducerCalibSimul::EBRecHitCollection_ |
|
private |
◆ eventHeaderCollection_
std::string TreeProducerCalibSimul::eventHeaderCollection_ |
|
private |
◆ eventHeaderProducer_
std::string TreeProducerCalibSimul::eventHeaderProducer_ |
|
private |
◆ hodoRecInfoCollection_
std::string TreeProducerCalibSimul::hodoRecInfoCollection_ |
|
private |
◆ hodoRecInfoProducer_
std::string TreeProducerCalibSimul::hodoRecInfoProducer_ |
|
private |
◆ myTree
◆ noHeader
int TreeProducerCalibSimul::noHeader |
|
private |
◆ noHits
int TreeProducerCalibSimul::noHits |
|
private |
◆ noHodo
int TreeProducerCalibSimul::noHodo |
|
private |
◆ noTdc
int TreeProducerCalibSimul::noTdc |
|
private |
◆ posCluster_
double TreeProducerCalibSimul::posCluster_ |
|
private |
◆ RecHitProducer_
std::string TreeProducerCalibSimul::RecHitProducer_ |
|
private |
◆ rootfile_
std::string TreeProducerCalibSimul::rootfile_ |
|
private |
◆ tdcRecInfoCollection_
std::string TreeProducerCalibSimul::tdcRecInfoCollection_ |
|
private |
◆ tdcRecInfoProducer_
std::string TreeProducerCalibSimul::tdcRecInfoProducer_ |
|
private |
◆ tot_events
int TreeProducerCalibSimul::tot_events |
|
private |
◆ tot_events_ok
int TreeProducerCalibSimul::tot_events_ok |
|
private |
◆ txtfile_
std::string TreeProducerCalibSimul::txtfile_ |
|
private |
◆ xtalInBeam
int TreeProducerCalibSimul::xtalInBeam |
|
private |
void fillInfo(int run, int eve, int xnum, int maxX, int nomX, int nextX, int xeta, int xphi, int tbm, double xx, double yy, double ecalx, double ecaly, double sx, double sy, double qx, double qy, double tdcoff, int allm, double amp[], int cry[])