Go to the documentation of this file.
12 : namePattern_(
pset.getUntrackedParameter<
std::
string>(
"FilenamePattern",
"/tmp/HTB_%06d.root")) {
15 std::vector<edm::ParameterSet>
names =
pset.getUntrackedParameter<std::vector<edm::ParameterSet> >(
"ChunkNames");
16 std::vector<edm::ParameterSet>::iterator
j;
19 int num =
j->getUntrackedParameter<
int>(
"Number");
30 if (
file_ !=
nullptr) {
33 ri_.
setInfo(
"DAQSofwareRelease",
"UNKNOWN -- HcalTBWriter");
50 if (
file_ ==
nullptr) {
63 c->adoptBuffer((ULong64_t*)frd.
data(), frd.
size() / 8);
79 tree_ =
new TTree(
"CMSRAW",
"CMS Common Data Format Tree");
83 for (
int i = 0;
i < 2048;
i++) {
93 snprintf(sname, 64,
"Chunk%03d",
i);
102 if (
name ==
"HCAL_Trigger" ||
name ==
"SliceTest_Trigger")
136 int runno =
id.run();
137 const char* seqid =
"";
138 int eventNo =
id.event();
149 bunchNo = head.
bxID();
std::map< int, std::string > blockToName_
struct StandardTrgMsgBlkStruct StandardTrgMsgBlk
CDFChunk * chunkList_[1024]
void extractEventInfo(const FEDRawDataCollection &raw, const edm::EventID &id)
void store(TFile *toFile)
edm::EDGetTokenT< FEDRawDataCollection > tok_raw_
uint32_t triggerTime_base
const unsigned char * data() const
Return a const pointer to the beginning of the data buffer.
char runNumberSequenceId[16]
#define DEFINE_FWK_MODULE(type)
const std::string names[nVars_]
StandardTrgMsgBlk stdBlock
const FEDRawData & FEDData(int fedid) const
retrieve data for fed
void Set(UInt_t runNo, const char *seqid, ULong64_t eventNo, UInt_t l1aNo, ULong64_t orbitNo, UInt_t bunchNo)
setter routine
struct newExtendedTrgMsgBlkStruct newExtendedTrgMsgBlk
size_t size() const
Lenght of the data buffer in bytes.
Global information about an event such as event number and run number.
CDFEventInfo * eventInfo_
void buildTree(const FEDRawDataCollection &raw)
std::map< int, int > chunkMap_
uint32_t triggerTime_usec
void analyze(const edm::Event &e, const edm::EventSetup &es) override
void setInfo(const char *key, const char *value)
add some information to the run info
HcalTBWriter(const edm::ParameterSet &pset)