#include <TauJetContainer_p1_old_cnv.h>
|
| virtual void | Convert (TauJetContainer_p1 *newobj, const TauJetContainer_p1_old *oldobj) |
| | Do the conversion.
|
| virtual void | ConvertVoid (void *transobj, const void *persobj) |
| | Do the conversion.
|
| TClass * | GetTransClass () |
| | Return the transient class, to which we're converting.
|
| TClass * | GetPersClass () |
| | Return the persistent class, from which we're converting.
|
| int | GetCheckSum () const |
| | Return the checksum of the class from which we're converting.
|
| virtual void * | NewPersObj () |
| | Create a new instance of the persistent class.
|
| virtual void | DeletePersObj (void *persobj) |
| | Destroy an instance of the persistent class.
|
| virtual void | ReadBuffer (TBuffer &b, void *obj, Version_t version, UInt_t R__S, UInt_t R__c) |
| | Read object in non-split mode.
|
|
| static TClass * | ToClass (const std::string &name) |
| | Helper to convert a class name to a Root class pointer.
|
| static TClass * | ToClass (const std::type_info &id) |
| | Helper to convert a type_info to a Root class pointer.
|
|
| void | SetCtorInfo (UInt_t checksum, TClass *trans_cls, TClass *pers_cls) |
|
| void * | fPersObj |
| | The temporary persistent object instance, used for conversions (in non-split mode).
|
|
| void | CheckStreamInfos () |
| | Helper to allow for automatic schema evolution for persistent classes.
|
| void | CheckClasses () |
| | Helper to check that the classes have been defined properly.
|
|
| TClass * | fTransClass |
| | The declared transient class.
|
| TClass * | fPersClass |
| | The declared persistent class.
|
| UInt_t | fCheckSum |
| | The declared checksum.
|
| int | fOldLast |
| | Used by CheckStreamInfos: the length of the streamerinfo list that we saw on the last CheckStreamInfos call.
|
◆ CheckClasses()
| void TVirtualConverter::CheckClasses |
( |
| ) |
|
|
privateinherited |
Helper to check that the classes have been defined properly.
Check that the class pointers got defined.
Definition at line 188 of file TVirtualConverter.cxx.
189{
192 Error (
"TVirtualConverter",
193 "Both transient and persistent classes are null.");
194 else
195 Error (
"TVirtualConverter",
196 "Transient class is null for persistent class `%s'",
198 }
200 Error (
"TVirtualConverter",
201 "Persistent class is null for transient class `%s'",
203}
TClass * fPersClass
The declared persistent class.
TClass * fTransClass
The declared transient class.
Error
The different types of error that can be flagged in the L1TopoRDO.
◆ CheckStreamInfos()
| void TVirtualConverter::CheckStreamInfos |
( |
| ) |
|
|
privateinherited |
Helper to allow for automatic schema evolution for persistent classes.
◆ Convert()
Do the conversion.
- Parameters
-
| transobj | Pointer to an instance of the transient class. |
| persobj | Pointer to an instance of the persistent class. |
An implementation of this must be provided in derived classes. It should initialize the object at transobj from the one at persobj.
Implements TVirtualConverter_T< TauJetContainer_p1, TauJetContainer_p1_old >.
Definition at line 8 of file TauJetContainer_p1_old_cnv.cxx.
10{
11 newobj->clear();
12 size_t n = oldobj->m_momenta.size();
13 newobj->resize (n);
14 for (
size_t i = 0;
i <
n;
i++)
15 {
16 TauJet_p1& tau = (*newobj)[
i];
21
22
23
26
27 typedef std::pair<int, double> ppair;
28 const std::vector<double>& pold = oldobj->m_parameters[
i];
29 std::vector<ppair>& pnew = tau.
m_params;
44
45 }
48 const std::vector<double>& pold = oldobj->m_parameters[
i];
63 }
64 }
65}
ParticleBase_p1 m_particleBase
unsigned long m_vetoFlags
ElementLinkIntVector_p1 m_tracks
std ::vector< std ::pair< int, double > > m_params
ElementLinkInt_p1 m_cluster
@ annularIsolationFraction
@ lowPtTauEleDiscriminant
@ lowPtTauJetDiscriminant
◆ ConvertVoid()
Do the conversion.
- Parameters
-
| transobj | Pointer to an instance of the transient class. |
| persobj | Pointer to an instance of the persistent class. |
This implementation simply calls the Convert below with the appropriate casting.
Implements TVirtualConverter.
◆ DeletePersObj()
| void TVirtualConverter::DeletePersObj |
( |
void * | persobj | ) |
|
|
virtualinherited |
Destroy an instance of the persistent class.
- Parameters
-
| persobj | Pointer to the instance to destroy. |
The provided implementation of this uses TClass::Destructor, but you can override it if need be.
Definition at line 263 of file TVirtualConverter.cxx.
◆ GetCheckSum()
| int TVirtualConverter::GetCheckSum |
( |
| ) |
const |
|
inherited |
Return the checksum of the class from which we're converting.
Definition at line 238 of file TVirtualConverter.cxx.
239{
241}
UInt_t fCheckSum
The declared checksum.
◆ GetPersClass()
| TClass * TVirtualConverter::GetPersClass |
( |
| ) |
|
|
inherited |
◆ GetTransClass()
| TClass * TVirtualConverter::GetTransClass |
( |
| ) |
|
|
inherited |
◆ NewPersObj()
| void * TVirtualConverter::NewPersObj |
( |
| ) |
|
|
virtualinherited |
Create a new instance of the persistent class.
The provided implementation of this uses TClass::New, but you can override it if need be.
Definition at line 250 of file TVirtualConverter.cxx.
◆ ReadBuffer()
| void TVirtualConverter::ReadBuffer |
( |
TBuffer & | b, |
|
|
void * | obj, |
|
|
Version_t | version, |
|
|
UInt_t | R__s, |
|
|
UInt_t | R__c ) |
|
virtualinherited |
Read object in non-split mode.
- Parameters
-
| b | The source of the data. |
| obj | The object into which we're reading. (This will be the transient object.) |
| version | The version number of the class. |
| R__s | The starting position in the buffer. |
| R__c | The number of bytes for this object in the buffer. |
You normally shouldn't have to worry about this, but it's exposed here so that it can be overridden if needed. It's only used when reading in non-split mode.
Definition at line 282 of file TVirtualConverter.cxx.
287{
288
289
291
292
295
296
298
299
301}
virtual void * NewPersObj()
Create a new instance of the persistent class.
void CheckStreamInfos()
Helper to allow for automatic schema evolution for persistent classes.
virtual void ConvertVoid(void *transobj, const void *persobj)=0
Do the conversion.
void * fPersObj
The temporary persistent object instance, used for conversions (in non-split mode).
◆ SetCtorInfo()
| void TVirtualConverter::SetCtorInfo |
( |
UInt_t | checksum, |
|
|
TClass * | trans_cls, |
|
|
TClass * | pers_cls ) |
|
protectedinherited |
◆ ToClass() [1/2]
| TClass * TVirtualConverter::ToClass |
( |
const std::string & | name | ) |
|
|
staticinherited |
Helper to convert a class name to a Root class pointer.
- Parameters
-
| name | The name of the class to convert. |
Returns nullptr on failure.
Definition at line 310 of file TVirtualConverter.cxx.
311{
312 return gROOT->GetClass (
name.c_str());
313}
◆ ToClass() [2/2]
| TClass * TVirtualConverter::ToClass |
( |
const std::type_info & | id | ) |
|
|
staticinherited |
Helper to convert a type_info to a Root class pointer.
- Parameters
-
| name | The type_info of the class to convert. |
Returns nullptr on failure.
Definition at line 322 of file TVirtualConverter.cxx.
323{
324 TClass*
cl = gROOT->GetClass (
id);
326
327
328
329
330 const char*
name =
id.name();
331 cl = gROOT->GetClass (name);
333
334 const char* n2 =
name;
335 while (isdigit(*n2))
336 ++n2;
337 cl = gROOT->GetClass (n2);
339
340 int errorCode = 0;
341 char* demname = nullptr;
342 {
343
344
345
346 R__WRITE_LOCKGUARD(ROOT::gCoreMutex);
347 demname = TClassEdit::DemangleTypeIdName (id, errorCode);
348 }
349 if (demname) {
350 cl = gROOT->GetClass (demname);
352 }
354}
void free(pointer p)
Free an element.
cl
print [x.__class__ for x in toList(dqregion.getSubRegions()) ]
◆ fCheckSum
| UInt_t TVirtualConverter::fCheckSum |
|
privateinherited |
◆ fOldLast
| int TVirtualConverter::fOldLast |
|
privateinherited |
Used by CheckStreamInfos: the length of the streamerinfo list that we saw on the last CheckStreamInfos call.
Definition at line 265 of file TVirtualConverter.h.
◆ fPersClass
| TClass* TVirtualConverter::fPersClass |
|
privateinherited |
◆ fPersObj
| void* TVirtualConverter::fPersObj |
|
protectedinherited |
The temporary persistent object instance, used for conversions (in non-split mode).
Definition at line 271 of file TVirtualConverter.h.
◆ fTransClass
| TClass* TVirtualConverter::fTransClass |
|
privateinherited |
The documentation for this class was generated from the following files: